[R] Silly Question

Douglas Bates bates at stat.wisc.edu
Sat May 11 21:41:27 CEST 2002


Ricardo Gonçalves <ricardo at icmc.sc.usp.br> writes:

> When I try to load my dataset I receive the following message:
> > read.table("growth.txt", header = TRUE, row.name=1);
> Error in "row.names<-.data.frame"(*tmp*, value = row.names) :
>         duplicate row.names are not allowed
> The Dataset consists in 98 individuals and 48 variables (at the first line) named Y, X1, X2, ...,
> X47.
> When I try :
> > read.table("growth.txt", header = TRUE);
> The data loads to the console but when I try to manipulate it R never founds the object.

Unless you assign the value of a function call to a name, it will be
printed and removed.  Try

growth <- read.table("growth.txt", header = TRUE)
summary(growth)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list