View source: R/str2str_functions.R
a2ld | R Documentation |
a2ld
converts a 3D array to a list of data.frames. This is a simple call
to a2lm
followed by m2d
. The default is to convert the third
dimension to the list dimension.
a2ld(a, along = 3L, stringsAsFactors = FALSE, check = TRUE)
a |
3D array. |
along |
integer vector of length 1 specifying the dimension to slice the array along. This dimension is converted to the list dimension. 1 = rows; 2 = columns; 3 = layers. |
stringsAsFactors |
logical vector of length 1 specifying whether character
vectors should be converted to factors. Note, that if the array is character
and |
check |
logical vector of length 1 specifying whether to check the structure
of the input arguments. For example, check whether |
list of data.frames - all with the same dimensions.
a2ld(HairEyeColor)
a2ld(HairEyeColor, along = 1)
try_expr(a2ld(mtcars)) # error b/c not a 3D array
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.