I am following code from an example using GerminaR, which uses the prosopis data set already in R. I changed the code for my own data set. My data loads no problem, but when I try to do the germination analysis it uses the prosopis data. I am not sure what my error in the code is for this to occur. Any advice on how to fix this?
This image shows R using the prosopis data instead of mine to produce the germination summary table. Using the code to load the dataset, I had no issues with the table being created, but it will not use my data for the analysis.
Here is the original code.
# Install packages and dependencies
library(GerminaR)
library(dplyr)
# load data
fb <- prosopis %>%
dplyr::mutate(across(c(nacl, temp, rep), as.factor))
# Prosopis data set
fb %>%
head(10) %>%
kable(caption = "Prosopis dataset loaded")
# germination analysis (ten variables)
gsm <- ger_summary(SeedN = "seeds"
, evalName = "D"
, data = fb
)
# Prosopis data set processed
gsm %>%
head(10) %>%
kable(caption = "Function ger_summary performe ten germination indices")
Also, when you get to this bit, the StiffGoldenRod_Data in the screenshot shows that the column is called Seeds rather than seeds. Does that cause an error? Is there an issue with Temp being some sort of character column as well.