Description Usage Arguments Value
A convenience function. Mainly designed for preparing data for co-author type networks, if an unknown number of authors per document is stored as a single character string with delimiters. A character string is split by a given character vector. For each part of the string a new row is created. An id value indicates which parts belong together. An order value indicates which part of the original string the stringpart was
1 | strsplit.to.rows(x, id = NULL, split_by = ";", ...)
|
x |
A character vector. |
split_by |
The character vector by which x will be split. By default should be a regular expression (see |
id |
The id to be assigned to the rows. If a vector of the same lengt of x is given, these values will be used. |
... |
additional parameters to be passed to the strsplit function |
A data.frame with the columns id, order and substring
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.