Skip to content

Commit 29f05cc

Browse files
committed
rearranged chunks and added some chunk options to improve output
1 parent bdab514 commit 29f05cc

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

traits/06-agronomic-metadata.Rmd

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Here are some key tables and fields that we will look at:
6363
| management_id | managements.id |
6464

6565

66-
```{r}
66+
```{r set-up, include = FALSE}
6767
6868
library(dplyr)
6969
library(tidyr)
@@ -77,6 +77,11 @@ options(betydb_key = readLines('.betykey', warn = FALSE),
7777
betydb_url = "https://terraref.ncsa.illinois.edu/bety/",
7878
betydb_api_version = 'v1')
7979
80+
```
81+
82+
83+
84+
```{r}
8085
## query and join tables
8186
species <- betydb_query(table = "species") %>%
8287
select(specie_id = id, scientificname, genus)
@@ -143,6 +148,9 @@ planting <- managements %>%
143148
filter(mgmttype == "Planting") %>%
144149
select(treatment_id, planting_date = date, nrate = level)
145150
151+
```
152+
153+
```{r yields-chunk, include = FALSE}
146154
#grass_yields <- yields %>%
147155
# filter(genus %in% c('Miscanthus', 'Panicum')) %>%
148156
# left_join(planting, by = 'treatment_id') %>%

0 commit comments

Comments
 (0)