Error running by_split() #15
-
Hello. My team is analyzing data collected from task called trail making test. We created a fn_score function that is able to compute a score for each participant (sum of time taken to complete each trial). When we tried running the by_split() function, we ran into the following error:
This error persist even if we use first_second or odd_even for the splitting. We have successfully computed split-half reliabilities for many of our tasks and this was the first time we're encountering this error. Any ideas on what may be causing it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey, thanks for your question! By default, splithalfr imports the function However, if you use it inside of the
Example:
|
Beta Was this translation helpful? Give feedback.
Hey, thanks for your question! By default, splithalfr imports the function
%>%
from the dplyr package, which in turn imports it from magrittr. If your use this function inside your own code, you'll first need to import it yourself by importing dplyr or magrittr.However, if you use it inside of the
fn_score
function passed toby_split
, things might be a bit more complicated because the splithalfr uses multi-core processing by default. If this is the case..ncores = 1
?fn_score
function?Example: