text_id_with_break | R Documentation |
Add ids.
text_id_with_break(x, brk, end_with_brk = TRUE)
add_text_id_df(df, col, brk, end_with_brk = TRUE)
x |
A string vector. |
brk |
A string to specify the break between ids. |
end_with_brk |
A logical. TRUE: brk means the end of groups. FALSE: brk means the beginning of groups. |
df |
A dataframe. |
col |
A string to specify the column. |
id_with_break() returns id vector, add_id_df() returns dataframe.
tmp <- c("a", "brk", "b", "brk", "c")
brk <- "brk"
text_id_with_break(tmp, brk)
add_text_id_df(tibble::tibble(tmp), col = "tmp", "brk")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.