Tag: r
-
Stripping NULLs recursively from an R list
Is there a nicer way to do this in R? I have a list where some elements are themselves lists (of lists of lists, etc.) I want to ignore entries with NULL as well as entries that are empty after stripping NULLs.
-
California County Seats
I had some fun today getting the location of each county seat in California. You can see the code here if you’re curious: https://github.com/fadend/county_seat_coords. The data are pulled from Wikipedia’s List of counties in California. I plotted them going through the tutorial here: https://eriqande.github.io/rep-res-eeb-2017/map-making-in-R.html. (Very nice!) Here’s my ugly R code for doing that, shamelessly…
-
Peer bonuses
One thing I really liked about Google is its peer bonus system. What other companies have something similar? Laszlo Bock describes Google’s system in his book Work Rules: The other feature of gThanks is the peer bonus… Giving employees the freedom to recognize one another is important. Many companies allow employees to nominate an employee…