R Utilities: Scan a Character Vector
The function scan.vec
function splits a string into a character
vector. The function scan0
is the
base::scan
function using the default
what="character"
.
scan.vec(vec) scan.vector(vec) scan0(file="", ...)
vec |
A string which should be split according to blanks |
file |
File to be scanned. See |
... |
Further arguments to be passed.
See |
############################################################################# # EXAMPLE 1: Example scan.vec | reading a string ############################################################################# vars <- miceadds::scan.vector( "female urbgrad \n groesse \t Nausg grpgroesse privat ") vars ## [1] "female" "urbgrad" "groesse" "Nausg" "grpgroesse" ## [6] "privat" ## the next lines are only commented out to fulfill CRAN checks ## vars2 <- miceadds::scan0() ## female urbgrad groesse Nausg grpgroesse privat
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.