[R] mean of a column in a list of data frames

2017-02-05 Thread Brandon Payne
I have a list of data frames, ownersList <- list(exp2004owners,exp2005owners, exp2006owners,exp2007owners, exp2008owners,exp2009owners, exp2010owners,exp2011owners, exp2012owners,exp2013owners, exp20

[R] can this be simplified with purrr:map or mapply?

2017-01-18 Thread Brandon Payne
I can't get my head around the *apply family of functions, surely there's a better way than what I have. I've tried using paste0 on the years, but then I have lists of strings, not data frames. `realList<-paste0("exp",as.character(2004:2014),"s")` I can't seem to convert these lists of strings to