[R] Multiplication of data frame with vector

2009-07-07 Thread cir p
Dear group: sorry for my beginners question, but I'm rather new to R and was searching high and low without success: I have a data frame (df) with variables in the rows and observations in the columns like (the actual data frame has 15 columns and 1789 rows): early1 early2 early3

Re: [R] Multiplication of data frame with vector

2009-07-07 Thread David Freedman
Would the scale function work for this? Something like new=scale(df, center=T) HTH, david freedman cir p wrote: Dear group: sorry for my beginners question, but I'm rather new to R and was searching high and low without success: I have a data frame (df) with variables in the rows and

Re: [R] Multiplication of data frame with vector

2009-07-07 Thread Stein, Luba (AIM SE)
-project.org [mailto:r-help-boun...@r-project.org] Im Auftrag von David Freedman Gesendet: Dienstag, 7. Juli 2009 14:53 An: r-help@r-project.org Betreff: Re: [R] Multiplication of data frame with vector Would the scale function work for this? Something like new=scale(df, center=T) HTH, david freedman cir