Mastering R for Research: Part 3 - Control Flow, Loops and Functions

Поділитися
Вставка
  • Опубліковано 25 жов 2024

КОМЕНТАРІ • 1

  • @arzinaponny
    @arzinaponny 4 місяці тому

    #Two conditions
    #if...else function is only applicable for single value whereas ifelse() is applicable for vectors...
    #Multiple conditions
    #if...else if....else if ...else function only works out for single value, on the other hand case_when() is applicable for both vector and dataframe/datasets