Displaying 1 result from an estimated 1 matches for "vegcov".
Did you mean:
gcov
2008 Sep 24
1
looping through variables
...ke to store them in some way that their names
only have to be typed once and can always be referred back to.
First step would be to automate the vectorisation of the raster maps:
# these are the raster maps which need to combined somehow ??
variables <- (temperature, precipitation, elevation, vegcover)
VariablesNew=c()
For (i in 1:length(variables)) {
Varnew <- as.vector(variables[i])
VariablesNew <- cbind(VariablesNew, Varnew)
}
This should return a data frame called VariablesNew with each column
representing one of the variables.
So the BIG QUESTION is how to input the variable...