split.exdf | R Documentation |
Divides an exdf
object into groups defined by one or more factors.
## S3 method for class 'exdf'
split(x, f, drop = FALSE, lex.order = FALSE, ...)
x |
An |
f |
A factor or a list of factors. |
drop |
A logical value indicating whether levels of |
lex.order |
A logical value passed to |
... |
Additional arguments to be passed to the default method of
|
Returns a list of exdf
objects created by splitting x
along the
values of f
.
exdf
# Read a Licor file, select just a few columns, and then split it by the value
# of the `plot` column
licor_file <- read_gasex_file(
PhotoGEA_example_file_path('ball_berry_1.xlsx')
)
licor_file <- licor_file[, c('plot', 'species', 'Qin', 'A', 'gsw'), TRUE]
split(
licor_file,
list(licor_file[,'species'], licor_file[,'plot']),
drop = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.