I have four dataframes A,B,C,D. I want to iterate over these four dataframes so that each of them is passed to the custom function testdf()
as the fourth parameter which can take only dataframe data type.
for (a in 1: (A,B,C,D)){
a<-testdf(x,y,z,A)
}
I also tried using list but that didn't seem to work as even when I passed as.data.frame(mylist(A))
in the function it threw an error that list can't be passed.