This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
library(FielDHub)
rcbd <- RCBD(t = 12, reps = 3,l = 1,plotNumber = 101,locationNames = "Kibos",seed = 1224)
rcbd
## Randomized Complete Block Design (RCBD):
##
## Information on the design parameters:
## List of 7
## $ blocks : num 3
## $ number.of.treatments: num 12
## $ treatments : chr [1:12] "T1" "T2" "T3" "T4" ...
## $ locations : num 1
## $ plotNumber : num [1:3] 101 201 301
## $ locationNames : chr "KIBOS"
## $ seed : num 1224
##
## 10 First observations of the data frame with the RCBD field book:
## ID LOCATION PLOT REP TREATMENT
## 1 1 KIBOS 101 1 T4
## 2 2 KIBOS 102 1 T6
## 3 3 KIBOS 103 1 T9
## 4 4 KIBOS 104 1 T8
## 5 5 KIBOS 105 1 T3
## 6 6 KIBOS 106 1 T1
## 7 7 KIBOS 107 1 T10
## 8 8 KIBOS 108 1 T11
## 9 9 KIBOS 109 1 T5
## 10 10 KIBOS 110 1 T12
Fbk<-rcbd$fieldBook
Fbk
## ID LOCATION PLOT REP TREATMENT
## 1 1 KIBOS 101 1 T4
## 2 2 KIBOS 102 1 T6
## 3 3 KIBOS 103 1 T9
## 4 4 KIBOS 104 1 T8
## 5 5 KIBOS 105 1 T3
## 6 6 KIBOS 106 1 T1
## 7 7 KIBOS 107 1 T10
## 8 8 KIBOS 108 1 T11
## 9 9 KIBOS 109 1 T5
## 10 10 KIBOS 110 1 T12
## 11 11 KIBOS 111 1 T2
## 12 12 KIBOS 112 1 T7
## 24 13 KIBOS 201 2 T9
## 23 14 KIBOS 202 2 T6
## 22 15 KIBOS 203 2 T12
## 21 16 KIBOS 204 2 T8
## 20 17 KIBOS 205 2 T3
## 19 18 KIBOS 206 2 T11
## 18 19 KIBOS 207 2 T7
## 17 20 KIBOS 208 2 T1
## 16 21 KIBOS 209 2 T10
## 15 22 KIBOS 210 2 T2
## 14 23 KIBOS 211 2 T5
## 13 24 KIBOS 212 2 T4
## 25 25 KIBOS 301 3 T11
## 26 26 KIBOS 302 3 T2
## 27 27 KIBOS 303 3 T1
## 28 28 KIBOS 304 3 T8
## 29 29 KIBOS 305 3 T4
## 30 30 KIBOS 306 3 T10
## 31 31 KIBOS 307 3 T12
## 32 32 KIBOS 308 3 T6
## 33 33 KIBOS 309 3 T5
## 34 34 KIBOS 310 3 T3
## 35 35 KIBOS 311 3 T7
## 36 36 KIBOS 312 3 T9
plot(rcbd)
Note that the echo = FALSE parameter was added to the
code chunk to prevent printing of the R code that generated the
plot.