Hi guys,

I am a newbie to R, so apologies in advance.

I created this simple table in excel, saved in tab delimited .txt:

name value_1 value_2
1 bill       1            4
2 ben      2           2
3 jane     3           1


>test <-read.table("\path\to\file", sep="\t", header=TRUE)

>x <-c(seq["value_1"])
>y <-c(seq["value_2"])

>plot(x,y)

and i get this error

Error in xy.coords(x, y, xlabel, ylabel, log) :
  (list) object cannot be coerced to type 'double'

What does this mean and how do i fix it?

Thanks for the help, James

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to