Skip to content

Commit e8d300a

Browse files
committed
Fix project name filter to include both "认知实验A-E" and "认知测评A-E" in users_completed target
1 parent 5f95c65 commit e8d300a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎_scripts/prepare_source_data.R‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ list(
108108
tar_target(
109109
users_completed,
110110
users_project_progress |>
111-
filter(str_detect(project_name, "^认知实验[A-E]$")) |>
111+
# one of the organization's project names was misnamed as "认知测评A-E"
112+
filter(str_detect(project_name, "^认知(实验|测评)[A-E]$")) |>
112113
summarise(n = sum(project_progress) / 100, .by = user_id) |>
113114
filter(n >= 4)
114115
),

0 commit comments

Comments
 (0)