
One way to address this is to use a histogram as a legend on your map. The histogram then provides you with a way of showing raw counts of equal weights while the map allows you to provide the spatial context of the values.
One way to address this is to use a histogram as a legend on your map. The histogram then provides you with a way of showing raw counts of equal weights while the map allows you to provide the spatial context of the values.
csv
files, sometimes tens of thousands of them, in order to combine them into a single analytical dataset I can use. When it’s only a few dozen, using fread()
, read_csv
, or the like can be fine, but nothing is quite as fast as using awk
or cat
.Here’s a snippet of code that allows one to use bash
in R
to concatenate csv
files in a directory. People in the lab have found it helpful so maybe others will as well.
R
. In the plot above, every line represents a single article with time on the x-axis and (cumulative) number of citations on the y-axis.It’s not super informative, so we can break it down a few ways to graphically explore the data.
Until then, I’m just going to throw up some random code snippets that resulted from the summer.
R
, I ran across an old listserv post that talked about how the colon (:
) operator was the fastest way to generate a sequence. I never really thought about it, but I got in the habit of always using it whenever I needed a sequence.Shiny
app1 that will calculate the number of people in the United States who meet specified sex, age, marital status, race/ethnicity, educational attainment, employment status, and annual income requirements.Shiny
package in R
and create an interactive interface for some of my problem sets. After a few trial runs with smaller, simpler setups, I have wrapped up the side project (for now). You can see it in action here 1 and you can view the final code on my Git.