[R] reshape command is (stats) dropping instances

Farrel Buchinsky fjbuch at gmail.com
Thu Nov 30 00:12:35 CET 2006


The attached file never went through. How does one attach a R workskpace (or 
two dataframes)
"Farrel Buchinsky" <fjbuch at gmail.com> wrote in message 
news:bd93cdad0611291010r56ea989dj3b9c955b9697a431 at mail.gmail.com...
>I would really appreciate it if anyone could determine what is going
> on with the following command. It is only half-working and is losing
> lots of data. For the life of me I cannot even see the pattern of what
> it is losing and what it is not.
>
> I am attaching the R data set which you can use with the Load
> Workspace menu function.
>
> WideICA<-reshape(ICA,v.names=c("OD","Thickness","Surface.Cover"),idvar=c("Strain","ica","Rep","Locations"),drop="Growth",timevar="Time",direction="wide")
>
> The following two commands should give the same data (other than the
> missing values) but they do not.
>
> ICA[ICA$Time==6,"Surface.Cover"]
>
> WideICA$Surface.Cover.6
>
> -- 
> Farrel Buchinsky
> Pediatric Otolaryngologist
> Allegheny General Hospital
> Pittsburgh, PA USA
>


--------------------------------------------------------------------------------


> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list