powered by
It takes a character string with names separated by comma (e.g. journal's names) and turns them into a table
string_to_table(x, n, split_regex = ", ?")
a dataframe of n columns
n
string to split and convert to table
number of bucket to create. It will be the number of column in the resulting data.frame
defaults to , ?. Pass to split in base::strsplit().
, ?
split
base::strsplit()
If the number of elements can't be split equally in the n column, blank cells will be created and all placed in the last column.
string_to_table(paste(letters, collapse = ", "), 3)
Run the code above in your browser using DataLab