Hi , I am trying to create a function to create a summary for values in two columns.
sample data
df <- data.frame("Tier1 City"=c(NA,"","Ottawa","","buenes aries","New York","washington DC"),
"Tier2 City"= c(NA,"","Ottawa","","buenes aries","","washington DC"))
i have tried with tabyl(janitor), table function but not working as i want
i am looking for a function where i can give input parameters as data,variable list , and name of variable i want in summary output.
the output should be look like.