Skip to content

Commit

Permalink
New uploads with updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-K-Addo committed Mar 16, 2023
1 parent 4d2730c commit 2bf5986
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
^.*\.Rproj$
^\.Rproj\.user$
^README\.Rmd$
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
inst/doc
.Rproj.user
6 changes: 3 additions & 3 deletions R/wd2Function.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
#' @examples
#' require(data.table)
#' temp <- wd2(n=100, m=15, k=5)
#' summary(temp) |> head()
#' plot(temp)
#' print(temp)
#' #summary(temp) |> head()
#' #plot(temp)
#' #print(temp)
#' @export
wd2 <- function(n, # Population size
m, # Initial Infected Population size
Expand Down
4 changes: 2 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ summary(temp) |> tail(5)
plot(temp) # or plot.wd2(temp)
```

```{r,echo=FALSE}
```{r,echo=FALSE, warning=FALSE, message=FALSE}
temp2<- print(temp)
```


This second plot shows the case when flight is set to TRUE.

```{r, echo=FALSE}
```{r, echo=FALSE, warning=FALSE, message=FALSE}
set.seed(2608)
# Primary function
temp <- wd2(n = 100, # Total Population size
Expand Down

0 comments on commit 2bf5986

Please sign in to comment.