Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Regarding Creating summary function

$
0
0

I have a data like above, want to create a function like


var1=ensym(var1)
var2=ensym(var2)
label=ensym(label)
  
data %>% tab_cells(mdset(var1 %to% var2,label = !!label))%>% 
tab_cols(banner)%>%   tab_stat_cpct()%>% tab_pivot() %>% flextable ()
}

so that i can apply like this in my chunks

but unable to create it , giving errors

please help to create function

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles