Skip to content

Instantly share code, notes, and snippets.

@hamidghaedi
Created October 16, 2020 16:02
Show Gist options
  • Save hamidghaedi/7b04aa082049f7681b232897d17be627 to your computer and use it in GitHub Desktop.
Save hamidghaedi/7b04aa082049f7681b232897d17be627 to your computer and use it in GitHub Desktop.
df$H1 <- ifelse(is.na(df$H1), df$H2, df$H1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment