[R] Replace NaN with value from the same row

2015-10-18 Thread Jonathan Reardon
Hi everyone, A simple question, but i cannot figure this out. I have a data-frame with 4 columns (onset, offset, outcome, mean): onset offset outcome mean8 72071 72503 1 7244615 142598 143030 1NaN30 293729 294161 1 294080 For each 'NaN' in the mean column, i want to r

[R] Replace NaN from 1 column with a value from the same row

2015-10-18 Thread Jonathan Reardon
Hi everyone, Ignore my previous post, i realised that the rows and columns i typed into the email were unreadable, sincere apologies for this. A simple question, but i cannot figure this out. I have a data-frame with 4 columns (onset, offset, outcome, mean): df<-data.frame(onset=c(72071,142598,293

Re: [R] Replace NaN with value from the same row

2015-10-18 Thread Jonathan Reardon
- > Sent from my phone. Please excuse my brevity. > > On October 18, 2015 12:24:42 PM PDT, Jonathan Reardon > wrote: > >Hi, Sorry to be a pain. Would you be kind enough to briefly explain > >what the lines

[R] 2x2x2 rm ANOVA, varying results

2016-05-15 Thread Jonathan Reardon
Hello, I ran a 2x2x2 repeated measures ANOVA which turned out fine: DfSum Sq Mean Sq F value Pr(>F) Attend1 0.5540 0.55402 7.03740.01079 *PercGrp 1