Displaying 1 result from an estimated 1 matches for "sw_climate_dataframe_".
2010 Nov 16
1
Force evaluation of variable when calling partialPlot
...x.var=v )
> }
>
> ...but this doesn't work, with partialPlot complaining that it can't
> find the variable "v".
I'm having a very similar problem using the partialPlot function. A
simplified version of my code looks like this:
data.in <- paste(basedir,"/sw_climate_dataframe_",root.name,".csv",sep="")
data <- read.csv(data.in)
vars <- c("sm1","precip.spring","tmax.fall","precip.fall") #selected
variables in data frame
xdata <- as.data.frame(data[,vars])
ydata <- data[,5]
ntree <- 2000
rf.p...