Hi all,

I have a large dataset that has >10k entries. The dataset is stored in a
dataframe with the headers:

SubID Condition1 Condition2 Result1 Result2

There are multiple entries for a given SubID(Subject ID). Condition 1 has 3
levels and condition2 has 2 levels (therefore there are 6 possible
combinations all together e.g. Cond1 Level1 x Cond2 Level 1 etc.) and i need
to compute for
1. The mean for a subject of result1 and 2 for all the permutations of
condition 1 and 2.
2. The mean of all subjects for result1 and 2 split into the permutations of
condition 1 and 2.

can anyone advise on how this can be accomplished in R? Some data
reorganisation probably needs to be done.

Thanks and by the way, this is my first foray into R and I have been a long
time Excel user. Appreciate any guidance!


Regards,
RJ

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to