Hi I am trying to use the Finlay Wilkinson regression function FW in R for yield stability analysis. I tried running this, but am getting the below error
Error in FW(y = yield, VAR = genotype, ENV = location, method = "OLS") : object 'genotype' not found
My data file has the headers 'yield', 'genotype' and 'location' on it. Not sure what I am doing wrong here, since I just followed the syntax from the original publication. Please help!
My code below:
crop <- read.csv("barleygt6.csv", header = TRUE)
summary(crop)
install.packages("devtools")
library(devtools)
install.packages("remotes")
remotes::install_github("lian0090/FW")
library(FW)
lm1=FW(y= yield, VAR= genotype, ENV= location, method="OLS")