# NOT RUN {
# }
# NOT RUN {
data(eco.test)
# split the object "eco" into a list of ecogen objects by population
x <- eco.split(eco, "pop", asList = TRUE)
# re-bind the objects
eco.r <- eco.rbind(eco)
# create a new objects with the first and second population
eco.r <- eco.rbind(x[[1]], x[[3]])
# duplicated row names are not allowed by eco.rbind with default options
eco2 <- eco
eco.rbind(eco, eco2)
eco.rbind(eco, eco2,check_rownames = FALSE)
# }
# NOT RUN {
# }
Run the code above in your browser using DataCamp Workspace