# Numeric
paste_freq(20, 100)
# data.frame
df <- data.frame(x = c(1:100), y = TRUE)
paste_freq(df[1:20,], df)
# Mixed data types
paste_freq(20, df)
# Single denominator for multiple numerators
paste_freq(c(10,20,30), 100)
Run the code above in your browser using DataLab