[R] efficiently replacing values in a matrix

Matthew Keller mckellercran at gmail.com
Wed Apr 16 23:56:26 CEST 2008


Yes Chuck, you're right.

Thanks for the help. It was a data.frame not a matrix (I had called
as.matrix() in my script much earlier but that line of code didn't run
because I misnamed the object!). My bad. Thanks for the help. And I'm
VERY relieved R isn't that inefficient...

Matt


On Wed, Apr 16, 2008 at 3:39 PM, Rolf Turner <r.turner at auckland.ac.nz> wrote:
>
>  On 17/04/2008, at 9:33 AM, Charles C. Berry wrote:
>
>         <snip>
>
>
>
> > I'll lay odds that Matthew's 'matrix' is actually a data.frame, and I'll
> not be surprised if the columns are factors.
> >
>
>         <snip>
>
>  I suspect that you're right.
>
>  ***Why*** can't people distinguish between data frames and matrices?
>  If they were the same <expletive deleted> thing, there wouldn't be two
>  different terms for them, would there?
>
>         cheers,
>
>                 Rolf Turner
>
>  ######################################################################
>  Attention:This e-mail message is privileged and confidential. If you are
> not theintended recipient please delete the message and notify the
> sender.Any views or opinions presented are solely those of the author.
>
>
>
>  This e-mail has been scanned and cleared by
> MailMarshalwww.marshalsoftware.com
>  ######################################################################
>



-- 
Matthew C Keller
Asst. Professor of Psychology
University of Colorado at Boulder
www.matthewckeller.com



More information about the R-help mailing list