EN VI
Posts (0)
Questions (1)
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