I have dataframe mydf and I've split it to get number of data frames like mydf$'1' mydf$'2'...mydf$'n'
.
I wish to apply my function on these data frames to get resultdf like
resultdf1 <- myfunc(mydf$'1')
resultdf2 <- myfunc(mydf$'2')
.....
resultdfn <- myfunc(mydf$'n')
and so on...Since there are about 35 data frames from the split. How can I reduce my effort without manually writing for each frame name and resultdf.
I tried lapply but didn't work out correctly. Any help will be appreciated.
Thanks