Skip to content
Prev 147856 / 398500 Next

boxplot problem

The problem is dat is a data object, not a function. You used the syntax for
a function "dat(1:19)" 
What you probably want is: 

gc <- dat[,1:19]
act <- dat[,20:39]

That will select columns 1 through 19 and put them into the object gc, and
act will get columns 20 through 39. Is that what you want? It is hard to
tell because we don't have access to the data file read into the object
"dat" using the read.table function. 

BTW, is this a homework assignment?  ;-)
Paul Adams-8 wrote: