[R] Extracting arithmetic mean for specific values from multiple .txt-files
superdodge at gmx.net
Tue Jul 10 19:06:29 CEST 2012
thank you very much.
Your solution works perfectly.
One last question:
I need to write a function, with ONE value (here: a ratio) for the correct
reactions divided per trials or trialCount, respectively, FOR EACH test
"/" means "divided by" in the following.
I need the ratio correct (reactions)/trial or correct
(reactions)/trialCount, respectively (because trial and trialCount are the
same WITHIN test SUBJECTS; BUT they differ in length between BETWEEN test
It would be very helpful, if I had a data frame in the end in R, with one
"trialCount"/"trial", one column for "correct reactions"(= 1) AND (more
importantly) one column for "correct (= 1) answers / trialCount".
legend (just as additional information) for the variable "correct":
1 = correct reaction
2 = false reaction
3 = reaction too slow
4 = reaction too fast
5 = more than one button pressed
6 = no reaction within RT window
I would be very thankful for an answer!
Sorry for the questions, but I am doing this for the first time!
View this message in context: http://r.789695.n4.nabble.com/Extracting-arithmetic-mean-for-specific-values-from-multiple-txt-files-tp4635809p4636020.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help