[R] What does it mean by skip=2 and skip=7?

Dieter Menne dieter.menne at menne-biomed.de
Sun May 10 09:52:28 CEST 2009


Tung86 <wyutung <at> gmail.com> writes:

> 
> Can anyone tell me what is skip=2, skip =7 and %in% mean here?
> 
> fromcsv=read.csv
> ('2_2005_top200_postdoc.csv',header=FALSE,skip=7,stringsAsFactors=FALSE)

Did you check the docs?

skip 	integer: the number of lines of the data file to skip before beginning to
read data.
 
> fromreadxls = fromreadxls[fromreadxls$V7 %in% c('Public','Private'),]

See the documentation of "match"

Dieter




More information about the R-help mailing list