[R] R newbie attempting to plot data

Chuck Cleland ccleland at optonline.net
Sat May 27 00:23:35 CEST 2006


Rex Eastbourne wrote:
> Hi,
> 
> I just started using R and am having trouble with the below error:
> 
> I type:
> 
>> df <- read.csv("/home/rex/Desktop/mytable.csv")
> 
> which gives me what I want:
> 
> ...
> 639 2006-05-26 16:46:54     4   16
> 640 2006-05-26 17:05:36     5   17
> 641 2006-05-26 17:30:48     6   17
> 
> But now I try:
> 
>> plot(df[4],df[3])
> Error in pmatch(x, table, duplicates.ok) :
>         argument is not of mode character

You probably intended:

plot(df[,4],df[,3])

> Any ideas? I tried read.table and importing the data from MySQL too; same
> error.
> 
> Thanks,
> 
> Rex
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> 

-- 
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894



More information about the R-help mailing list