R newbie attempting to plot data

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

R newbie attempting to plot data

Rex C. Eastbourne
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

Any ideas? I tried read.table and importing the data from MySQL too; same
error.

Thanks,

Rex

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: R newbie attempting to plot data

Chuck Cleland
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]]
>
> ______________________________________________
> [hidden email] 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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Loading...