Extremely accessible overview of the work of Yitang Zhang and the polymath project on prime gaps, with a neat trick variant of the usual probabilistic method I hadn’t seen before.
I just came across this: it’s an interesting story about the history of Design Theory (which is connected to experimental design). Does anyone happen to know if any algebraic statisticians are working on Design Theory?
This semester I’m the TA for a course on statistical graphics. The homework is done in R and submissions are required to be R Markdown (.Rmd) files. This was done so that all of the code and output are neatly presented and if the .Rmd file compiles it’s a sign that the students’ R code runs.
However, this presented a unique challenge as I wound up with too many R Markdown files to comfortably compile.
My solution (which should be OS independent) is to create a new directory with just the .Rmd files in it:
I then run R (just type <R> into your terminal emulator). A quick list.files() verifies that we’re in the right working directory:
Now, we have a list of the files that we want to compile, and the function we want to apply to each of the files is knit2html() (or knit2pdf()). However, I’ve noticed that some weird dependency/global variable strangeness happens if you don’t purge the environment before compiling each document. Luckily, knit2html()/knit2pdf() has a built-in option to handle this. The code is:
sapply(list.files(), function(x) knit2html(x, envir=new.env()))
There are a million out there, but this one is mine.
I originally made it for others in my research group, so ignore the bits where it asks you to email me for approval.
I just wanted to share two bits of math culture that I encountered during a conference in Washington D.C.
The “π”-zzeria was along my trip to the NAS Keck Center (of the National Academy of Sciences), where the conference was being held.
If you are using a Hi-DPI display to view RStudio in Windows, you will notice that the RStudio window and text/elements are too tiny to work with. After searching for a solution online that didn’t involve me setting my monitor resolution to non-Retina levels, I stumbled upon the “zoom” setting under Tools>Global Options>Appearance.
I found 175% comfortable on my 13″ Retina MacBook Pro.