Function to check for existence of behavioral data. Assumes that data is stored in a directory identified as <task>_<protocol>. This checks for a simple existence of the subject ID as a directory under <task>_<protocol> and then uses grep to check for the required files. This required at least one match to each file. This will return a dataframe of the subjects and whether or not they have complete behavioral data.
1 2 3 4 5 6 7 8 | have_behavior_data(
cfg,
protocol,
task,
local_root = "",
data_path = NA,
my_required = NA
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.