Description Usage Arguments Value See Also
View source: R/erp_preprocess.R
splitMarker
is a conveniance function wrapping strsplit. It returns
a data.frame with columns of customizable classes. Useful for post-processing
markers.
1 | splitMarker(marker, header, type = NULL, splitchar = "_")
|
marker |
a vector which contains concatenated elements |
header |
a character vector which determines the column names of the resulting data.frame |
type |
a character vector which determines the class of each column in the resulting vector. If its length is less then the number of columns, it will be recycled. If set to NULL (default), character vectors are transformed to factors. |
splitchar |
a character vector of length one indicating the splitting character (default: _). Splitting characters which are special characters in R (e.g. "|", ".", etc.) should be given as in strsplit (e.g. "\\|") |
A data.frame with header and appropriate classes, containing the spltted substrings of the original vector elements
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.