| .magicsep | R Documentation |
Converts a character vector int columns.
.magicsep(charvec, labs, types = NULL, sep = "MAGICSEP")
charvec |
Character vector. Characters to separate into columns. |
labs |
Character vector. Labels for the columns. |
types |
List (Default: All characters). List (in order) of extracted types. |
sep |
String (Default: "MAGICSEP"). |
A wrapper around strcapture.
Given "a_MAGICSEP_b", returns a vector of "a_" and "_b".
Useful for converting a multiple-parameter string into columns of parameters.
User can give column names in labs, and types of each extracted component as a list in types.
User can customize sep, but by default assumes MAGICSEP.
data.frame
Stephen R. Martin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.