moveToDF | R Documentation |
Variables are specified by pattern
, which is a regular expression.
The modal length of all variables in the calling environment that match
pattern
is determined. Matching variables are then moved to a data
frame (or copied to a data frame if move
is FALSE
).
pattern
may be NULL
, in which case all variables in the
calling environment will be examined.
moveToDF(pattern = NULL, move = TRUE)
pattern |
String that specifies a regular expression. It is
|
move |
Logical variable. |
If there are multiple modal lengths of the objects in the calling environment, all modes will be used. For example, if the calling environment has 20 objects of length\NB1, 20 objects of length\NB2, and one object of length\NB3, the returned data frame may have as many as 40 columns.
Variables that have the "dim" attribute – for example, arrays and matrices – will not be moved into the new data frame. Functions will never be moved into the new data frame, either.
Data frame containing all one-dimensional variables that have names
matching pattern
and that have the modal length of those variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.