EN VI
Posts (0)
Questions (2)
2024-03-11 23:00:10
If you want this as a one-off update, use row_number() window function and set up the window to be partitioned by client_id: demo with cte as (select id,row_number()over w1 as number from...
2024-03-14 09:30:05
Your second approach is on the right track, you just need to subset names(.) as well: set.seed(13) library(dplyr) # example data df % mutate(Max = names(.[3:7])[which.max(c_across(3:7))]) %>% ung...
Tags: r max multiple-columns

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login