R/scan0.R

Defines functions scan0 scan.vector

Documented in scan0 scan.vector

## File Name: scan0.R
## File Version: 0.07

####################################################
scan.vector <- function( vec ){ 
    vec <- unlist( strsplit( vec , split="\n" , fixed=TRUE) )
    vec <- unlist( strsplit( vec , split=" " , fixed=TRUE) )
    vec <- vec[ vec != "" ] 
    return(vec)
}
scan.vec <- scan.vector
####################################################				
# scan function with default what = "character"
scan0 <- function( file="" , ...){
	scan( file=file , what="character" , ...)			
}
#########################################################		

Try the miceadds package in your browser

Any scripts or data that you put into this service are public.

miceadds documentation built on Nov. 21, 2017, 1:05 a.m.