split_text | R Documentation |
Split text into parts, each not exceeding a specified character count
split_text(text, nchr_each = 200)
text |
Original text |
nchr_each |
Maximum character count for each part |
List of divided parts
original_text <- paste0(sample(c(letters, "\n"), 400, replace = TRUE), collapse = "")
parts <- split_text(original_text, nchr_each = 200)
lapply(parts, nchar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.