[R] using R for a reaction-time experiment
Greg Snow
Greg.Snow at intermountainmail.org
Mon Jul 23 18:06:33 CEST 2007
Under windows you could use a graphics window for the stimulus and
capture the keypress using the getGraphicsEvent function (this does not
require hitting enter, but the graphics window needs to be the active
window through the experiment). The playSudoku function in the sudoku
package shows one example of using getGraphicsEvent to capture
keypresses.
Hope this helps,
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at intermountainmail.org
(801) 408-8111
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Seth Roberts
> Sent: Sunday, July 22, 2007 10:38 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] using R for a reaction-time experiment
>
>
> I want to use R to run a reaction-time experiment: Something
> appears on the screen, I respond by typing something (one
> keystroke), the system measures the speed of my response. R
> would be great for this if only I didn't have to hit Enter to
> enter that keystroke. I am doing such experiments now but
> they require two actions per trial: hit keystroke, hit Enter.
>
> Is there some way that R can be made to respond to a single
> keystroke (other than Enter)?
> --
> View this message in context:
> http://www.nabble.com/using-R-for-a-reaction-time-experiment-t
> f4125643.html#a11732474
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
More information about the R-help
mailing list