# NOT RUN {
# }
# NOT RUN {
data(eco.test)
# create some population data
to_ecopop <- ecogen2ecopop(eco, "pop")
XY_pop <- to_ecopop[["XY"]]
P_pop <- to_ecopop[["P"]]
E_pop <- to_ecopop[["E"]]
# Add only XY data to the ecogen object
object_with_pop_data <- eco.fill_ecogen_with_df(eco, "pop", c(1,2,3,4),
XY = XY_pop)
# Add all the population data to the ecogen object
object_with_pop_data <- eco.fill_ecogen_with_df(eco, "pop", c(1,2,3,4),
XY = XY_pop, P = P_pop, E = E_pop)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab