[R] Newb question re. read.table...

Karl Ove Hufthammer karl at huftis.org
Thu Mar 4 09:23:09 CET 2010


On Thu, 4 Mar 2010 11:34:49 +1300 Rolf Turner <r.turner at auckland.ac.nz> 
wrote:
> There are various ways to access components of a data frame:
> 
> 	* plot(con$rel,con$len)
> 	* plot(con[["rel"]],con[["len"]])
> 	* plot(con[,"rel"],con[,"len"])
> 	* with(con, plot(rel,len))

And: plot(len~rel, data=con)

-- 
Karl Ove Hufthammer



More information about the R-help mailing list