eval(expr,envir,enclos)中的錯誤:找不到對象zygpar。eval(expr,envir,enclos)中的錯誤:未找到對象'zygpar'
nl <- read.table ("hybrid2.csv", header=T, na=".")
describe(nl, skew=F)
# Recode Data for Analysis - Rescale variables to have variances around 1.0
nl$orf1 <- nl$orfsummer0ppvt00
nl$orf2 <- nl$orfsummer1ppvt11
nl$nwf1 <- nl$nwfsummer1ppvt11
nl$nwf2 <- nl$nwfsummer1ppvt11
nl$fcat1 <- nl$fcat0ppvt00
nl$fcat2 <- nl$fcat0ppvt00
nl$rti1 <- nl$rtisum10
nl$rti2 <- nl$rtisum11
nl$zygpar <- nl$zyg_par
# Select Variables for Analysis
vars <- c('orf','nwf','fcat','rti')
nv <- 4 # number of variables
ntv <- nv*2 # number of total variables
selVars <- paste(vars,c(rep(1,nv),rep(2,nv)),sep="")
# Select Random Subset to reduce time to Fit Examples
testData <- head(nl,n=500)
# Select Data for Analysis
mzData <- subset(testData, zygpar==1, selVars)
dzData <- subset(testData, zygpar==2, selVars)
我在這裏做錯了什麼? 我得到的錯誤是在EVAL 錯誤(表達式,ENVIR,enclos):「zygpar」未找到對象