Skip to content

Commit

Permalink
mz
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Jun 26, 2024
1 parent ba6ccd1 commit 80043ef
Show file tree
Hide file tree
Showing 58 changed files with 62 additions and 60 deletions.
7 changes: 3 additions & 4 deletions reports/dataset.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ if (all(c("longitude", "latitude") %in% colnames(locs))) {
if (grepl("trials", group)) {
varieties <- unique(d$variety)
if (is.null(varieties)) varieties <- unique(d$variety_code)
vartxt <- paste(" These are trial data for", length(varieties), "varieties.")
} else {
vartxt <- ""
Expand All @@ -101,17 +100,17 @@ This report describes standardized data for "*`r m$title`*". These data were sta

`r pub`

The dataset has `r nrow(d)` records and `r ncol(d)` variables. Data are for `r crop` in `r country`. `r vartxt`
The dataset has `r nrow(d)` records and `r ncol(d)` variables for `r crop` in `r country`. `r vartxt`

<\br>
</br>
These are the first `r min(nrow(d), 25)` records:

```{r tab1}
scrolltab(head(d, 25), "records")
```

</br>
`r if(!is.null(treatments)) paste("The dataset has", nrow(treatments), "treatments:")
`r if(!is.null(treatments)) paste("The dataset has", nrow(treatments), "treatments:")`

```{r tab2}
if (!is.null(treatments)) scrolltab(treatments, "treatments")
Expand Down
3 changes: 3 additions & 0 deletions scripts/maize_trials/_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ intmztrial_striga <- function(ff, sf=NULL) {
d <- carobiner::change_names(d, c("gwt"),
c("grain_weight"), must_have=FALSE)

d$is_survey <- FALSE
d$N_fertilizer <- d$P_fertilizer <- d$K_fertilizer <- as.numeric(NA)
d$irrigated <- as.logical(NA)

d
}
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180713_1512_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180716_0907_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ and 2015 in over thirty African countries. This dataset contains output of the r
carob_contributor = "Camila Bonilla",
carob_date="2021-06-02",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180716_1145_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180727_0940_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180727_1612_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180727_1630_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This dataset contains output of the research for Cote D'Ivoire.
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180727_1709_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This dataset contains output of the research for Mali."
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180727_1728_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180727_1753_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180727_1820_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_0838_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This is an international study that contains data on yield and other agronomic t
carob_contributor = "Camila Bonilla",
carob_date="2021-06-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"

Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_0912_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_0930_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_0942_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This dataset contains output of the research for Kenya."
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_0957_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1010_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1016_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This dataset contains output of the research for Mali."
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1039_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1052_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1100_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1112_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1134_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This dataset contains output of the research for Republic of Benin.
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1155_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1354_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This dataset contains output of the research for Sierra Leone.
carob_contributor = "Camila Bonilla",
carob_date="2021-06-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1408_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This dataset contains output of the research for Sierra Leone.
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1420_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This dataset contains output of the research for South Sudan.
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1448_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1501_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1514_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This dataset contains output of the research for Thailand."
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1522_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This dataset contains output of the research for Togo."
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1533_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This dataset contains output of the research for Uganda.
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1551_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This dataset contains output of the research for Zaire."
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1600_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180730_1608_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This dataset contains output of the research for Zimbabwe."
carob_contributor = "Camila Bonilla",
carob_date="2021-06-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180830_1515_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180830_1537_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180830_1604_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180830_1620_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180830_1631_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/maize_trials/doi_10.25502_20180830_1731_MA.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The study was carried out by the International Institute of Tropical Agriculture
carob_contributor = "Robert Hijmans",
carob_date="2023-07-03",
data_type = "experiment",
treatment_vars = "variety_code;longitude;latitude",
treatment_vars = "variety",
project="International Maize Trials",
data_institute="IITA"
)
Expand Down
Loading

0 comments on commit 80043ef

Please sign in to comment.