Description Usage Arguments Value See Also Examples
View source: R/textToColumns.R
textToColumns()
splits a character vector into data
frame columns based on a specified split value
1 | textToColumns(x, split)
|
x |
character vector, each element of which is to be split |
split |
character value to be used as the splitter |
A data frame of character vectors containing all of the split
values. The number of columns will be the maximum number of splits found.
Observations with less than the maximum number of splits will have
NA
values in columns for which they do not have a split. Column
names will default to V1 - Vn
, where n
is the maximum number
of splits found.
1 2 | x <- c("abc|123", "def|456")
textToColumns(x, "|")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.