prettify | R Documentation |
Turns a single character column into features while separating with delimiter.
prettify(
tbl,
col = "feature",
into = get_dict_features("ipa"),
col_select = seq_along(into),
delim = ","
)
tbl |
A data.frame that has feature column to be prettified. |
col |
< |
into |
Character vector that is used as column names of features. |
col_select |
Character or integer vector that will be kept in prettified features. |
delim |
Character scalar used to separate fields within a feature. |
A data.frame.
prettify(
data.frame(x = c("x,y", "y,z", "z,x")),
col = "x",
into = c("a", "b"),
col_select = "b"
)
## Not run:
df <- tokenize(
data.frame(
doc_id = seq_along(5:8),
text = ginga[5:8]
)
)
prettify(df, col_select = 1:3)
prettify(df, col_select = c(1, 3, 6))
prettify(df, col_select = c("POS1", "Original"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.