Skip to content

Instantly share code, notes, and snippets.

@martinctc
Created March 2, 2020 13:03
Show Gist options
  • Save martinctc/12c6637a71b228175fd80786b17a6f99 to your computer and use it in GitHub Desktop.
Save martinctc/12c6637a71b228175fd80786b17a6f99 to your computer and use it in GitHub Desktop.
[Rowwise example in R] #R
library(tidyverse)
iris %>%
rowwise() %>%
mutate(any = any(c(Sepal.Length, Sepal.Width) > 5))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment