View source: R/VariableNames2String.R
VariableNames2String | R Documentation |
Stringing variable names with line breaks.
VariableNames2String(vars, breaks=80, sep=" ")
vars |
Vector with variable names |
breaks |
Numeric value for line break of variable string |
sep |
Separator |
String with line breaks
#############################################################################
# EXAMPLE 1: Toy example
#############################################################################
data(data.ma01)
# extract variable names
vars <- colnames(data.ma01)
# convert into a long string with line breaks at column 25
vars2 <- miceadds::VariableNames2String(vars, breaks=25)
vars
## [1] "idstud" "idschool" "studwgt" "math" "read" "migrant"
## [7] "books" "hisei" "paredu" "female" "urban"
vars2
## idstud idschool studwgt
## math read migrant books
## hisei paredu female
## urban
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.