Create a columns conditioned to two possible levels contained in another column
I have the following dataset out # A tibble: 1,356 x 7 ID GROUP Gender Age Education tests score <dbl> <chr> <dbl> <dbl> <dbl> <chr> <dbl> 1 1 TRAINING 1 74 18 ADAS_CogT0 56.7 2 1 TRAINING 1 74 18 ROCF_CT0 89 3 1 TRAINING 1 74 18 ROCF_IT0 7.9 4 1 TRAINING 1 74 18 ROCF_RT0 7.09 5 1 TRAINING 1 74 18 PVF_T0 478.1 6 1 TRAINING 1 74 18 SVF_T0 78 7 1 TRAINING 1 74 18 ADAS_CogT7 65 8 1 TRAINING 1 74 18 ROCF_CT7 09 9 1 TRAINING 1 74 18 ROCF_IT7 8.7 10 1 TRAINING 1 74 18 ROCF_RT7 66.1 If I would like to create a column where in place of the tests ending with T0 would corresponf the value score0 whereas
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.