pause 暂停 开始
#remotes::install_github("thebioengineer/pause")
set.seed(42)
library(tidyverse)
library(pause)
df<-data.frame(x=LETTERS,y=runif(26),z=sample(letters,26,replace = TRUE))
df2<-data.frame(x=LETTERS,w=sample(c(1,2),size = 26,replace = TRUE))
df %>%
mutate(vowel=LETTERS%in%c("A","E","I","O","U","Y")) %>%
filter(y>.5) %//%
df2 %>%
filter(w==1) %>>>%
left_join(by="x") %>%
filter(!is.na(w))
df %>%
mutate(vowel=LETTERS%in%c("A","E","I","O","U","Y")) %>%
filter(y>.5) %//%
filter(y>.75) %>>>%
bind_rows(.x1,.x2)
set.seed(42)
library(tidyverse)
library(pause)
df<-data.frame(x=LETTERS,y=runif(26),z=sample(letters,26,replace = TRUE))
df2<-data.frame(x=LETTERS,w=sample(c(1,2),size = 26,replace = TRUE))
df %>%
mutate(vowel=LETTERS%in%c("A","E","I","O","U","Y")) %>%
filter(y>.5) %//%
df2 %>%
filter(w==1) %>>>%
left_join(by="x") %>%
filter(!is.na(w))
df %>%
mutate(vowel=LETTERS%in%c("A","E","I","O","U","Y")) %>%
filter(y>.5) %//%
filter(y>.75) %>>>%
bind_rows(.x1,.x2)
评论
发表评论