VariableNames2String: Stringing Variable Names with Line Breaks

Description Usage Arguments Value Author(s) Examples

Description

Stringing variable names with line breaks.

Usage

1
VariableNames2String(vars, breaks = 80, sep = " ")

Arguments

vars

Vector with variable names

breaks

Numeric value for line break of variable string

sep

Separator

Value

String with line breaks

Author(s)

Alexander Robitzsch

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#############################################################################
# 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 <- 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 


Search within the miceadds package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.