Skip to contents

Convert an EAF data frame to a list of data frames, where each element of the list is one attainment surface. The function attsurf2df() can be used to convert the list into a single data frame.

Usage

eaf_as_list(eaf)

Arguments

eaf

data.frame()|matrix()
Data frame or matrix that represents the EAF.

Value

list()
A list of data frames. Each data.frame represents one attainment surface.

See also

Examples

extdata_path <- system.file(package="moocore", "extdata")
x <- read_datasets(file.path(extdata_path, "example1_dat"))
attsurfs <- eaf_as_list(eaf(x, percentiles = c(0, 50, 100)))
str(attsurfs)
#> List of 3
#>  $ 0  : num [1:9, 1:2] 5128176 5134240 5142568 5144532 5155408 ...
#>  $ 50 : num [1:25, 1:2] 5135414 5136906 5137952 5143188 5146024 ...
#>  $ 100: num [1:16, 1:2] 5153534 5155512 5155716 5158466 5160938 ...