For loops are for beginners – how does it work better in R? [closed]

I guess a good solution would be the dplyr package:

library(dplyr)

kader_test %>%
  dplyr::mutate(gespielt_von = ifelse(saison <= jahr_im_team_seit, im_team_seit, NA))

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top