Description Usage Arguments Value Notes See Also Examples
View source: R/reading_speed.R
This function calculates reading speed (in words per minute) for each sentence tested.
This calculation takes into account the number of misread words and gives a more precise reading speed measurement than readingSpeed_nonCorrected
.
1 | readingSpeed(data, reading_time, errors)
|
data |
The name of your dataframe |
reading_time |
The variable that contains the reading time for each sentence |
errors |
The variable that contains the number of errors for each sentence |
The function returns the original dataframe with an added variable called "reading_speed" that contains reading speed (in words/min) for each sentence tested.
For general purposes, this method of reading speed calculation should be used preferentially over the less precise readingSpeed_nonCorrected
.
readingSpeed_nonCorrected
for reading speed non corrected for errors
1 2 3 4 5 6 7 8 | # inspect the strucutre of the dataframe
head(data_low_vision, 10)
# run the reading speed calculation
data_low_vision_new <- readingSpeed(data_low_vision, rt, err)
# inspect the structure of the newly created dataframe
head(data_low_vision_new, 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.