scan.vec | R Documentation |
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 |
base::scan
#############################################################################
# EXAMPLE 1: Example scan.vec | reading a string
#############################################################################
vars <- miceadds::scan.vector( "urbgrad \n groesse \t Nausg grpgroesse privat ")
vars
## [1] "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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.