df <- data.frame(os = c("android", "android", "ios", "ios", "windows", "windows"),
platform = c("fb","fb", "google", "tiktok", "tiktok", "tiktok"),
country = c("de", "at", "ch", "gb", "fi", "es"))
output<- function (a, b, c){ # a = os, b = platform, c = country
colSums(tables[[b]][[c]][[a]][[month.abb[month(date)]]][, 2:12])
}
output("android", "fb", "de") #works]
how to loop the function rows of df??
apologies for not having a reproducible example.