Skip to content
Snippets Groups Projects
Commit 7b1501af authored by dj44vuri's avatar dj44vuri
Browse files

added namespace to contains()

parent 36cd9c72
Branches
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ as.data.frame(designf) ...@@ -71,7 +71,7 @@ as.data.frame(designf)
read_test() %>% read_test() %>%
tibble::rownames_to_column(var = "row_id") %>% tibble::rownames_to_column(var = "row_id") %>%
dplyr::filter(!grepl("no.choice", row_id)) %>% # Exclude no.choice rows dplyr::filter(!grepl("no.choice", row_id)) %>% # Exclude no.choice rows
dplyr::select(!contains("cte")) %>% # Drop unnecessary columns dplyr::select(!dplyr::contains("cte")) %>% # Drop unnecessary columns
dplyr::mutate( dplyr::mutate(
# Extract Choice.situation as number after 'set' # Extract Choice.situation as number after 'set'
Choice.situation = as.integer(sub("^set(\\d+).*", "\\1", row_id)), Choice.situation = as.integer(sub("^set(\\d+).*", "\\1", row_id)),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment