[R] More user-friendly error message needed.

Shin sdhyok at email.unc.edu
Wed Apr 7 21:07:49 CEST 2004

When I tried the following commands, I got a strange message.

> x<-data.frame(y=c(1:10))
> plot(x$z)
Error in xy.coords(x, y, xlabel, ylabel, log) :
        x and y lengths differ

"The data frame, x, does not have a field named z."
may be better user-friendly message for this kind of common error.

Daehyok Shin

More information about the R-help mailing list