R: assign() inside nested functions
Recently, I wrote a function called copy_names(). It does what you think and a little more: it copies names from one object to another. But it can also attempt to…
Recently, I wrote a function called copy_names(). It does what you think and a little more: it copies names from one object to another. But it can also attempt to…
This was an exchange between researchers that took place in 2006 in the academic journal Intelligence (34). Templer, D. I., & Arikawa, H. (2006). Temperature, skin color, per capita income,…
Usually working with large public datasets requires that one recode variables. This can be quite repetitive. When variables only have a few possible values, one can use something like plyr's…
Chisala has his 3rd installment up: http://www.unz.com/article/closing-the-black-white-iq-gap-debate-part-3/ One idea I had while reading it was that tail effects interact with population ethnic/racial heterogeneity. To show this, I did a simulation…
Do you find yourself in need of making nice ggplot2 plots for group means over and over again? Are you tired of (re-)writing big chunks of code for something that…
Van Ijzendoorn, M. H., Juffer, F., & Poelhuis, C. W. K. (2005). Adoption and cognitive development: a meta-analytic comparison of adopted and nonadopted children's IQ and school performance. Psychological bulletin,…
Often I want to get the mean value for a case across a number of columns, usually years. This however gets repetitive because the base mean() function cannot handle data…
I found this one a long time ago and tweeted it, but apparently forgot to blog it. Odenstad, A., Hjern, A., Lindblad, F., Rasmussen, F., Vinnerljung, B., & Dalen, M.…
One idea for a series of blog posts is that I could about new functions in my R package. Often I just push these without letting anyone know, but I…
It seems that no one has integrated this literature yet. I will take a quick stab at it here. It could be expanded into a proper paper later in case…