vec2columns | R Documentation |
Split a character column into multiple values
vec2columns(x, sep = ";")
x |
a character vector to split into columns. |
sep |
a character separating the different values. |
a data.frame
of boolean values, with each row representing
a value of x and each column representing a unique value
in x
following splitting. A column is marked TRUE in a specific row if
the value representing that column was present in that row.
Sercan Kahveci
unsplit<-c("flour;salt;baking soda;steak;sugar;water;sauce;vinegar",
"flour;sauce;mustard;salt;pepper;vinegar;baking soda;water;tomatoes;onion;steak")
vec2columns(unsplit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.