EcoGenetics (version 1.2.1-4)

eco.rbind: Combining ecogen objects by row

Description

Combining ecogen objects by row

Usage

eco.rbind(..., check_colnames = TRUE, check_rownames = TRUE)

Arguments

...

"ecogen" objects to combine.

check_colnames

Check for duplicated column names? Default TRUE.

check_rownames

Check for duplicated row names? Default TRUE.

Examples

Run this code
# 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