slitFrame {BIOdry}R Documentation

Multilevel splitting

Description

This function splits a Multilevel data frame into factor levels.

Usage

slitFrame(rd, lv = cClass(rd, "factor"))

Arguments

rd

data.frame object with factor-level columns.

lv

Numeric or character. Position number in the factor-level columns of rd, or correspondant column name to split the data. If the spliting column is not a factor, the character name of the column should be used.

Value

list of data.frame objects.

Author(s)

Wilson Lara <wilarhen@gmail.com>, Felipe Bravo <fbravo@pvs.uva.es>

Examples

##Ring data frame:
##Multilevel data frame of tree-ring widths:
data(Prings05, envir = environment())
data(PTclim05, envir = environment())
## split multilevel data into its second factor-level column:
spl <- slitFrame(Prings05)
str(spl)
## split the data into the factor-level: 'year':
spl <- slitFrame(Prings05,'year')
str(spl)
spl <- slitFrame(PTclim05,'year')
str(spl)


[Package BIOdry version 0.9 Index]