Getting a percentage table from a dataframe A reviewer asked me to: 1) As I said earlier, there should be some data on the countries of origin of the immigrant population. Most readers have no idea who actually moves to Denmark. At the very least, there should be basic information like “x% of the immigrant […]

Martin Gardner is 100 today. 1³+2³+3³+4³ = 100 = (1+2+3+4)². Does the sum of the first numbers cubed always equal the square of their sum? — Matt Parker (@standupmaths) October 21, 2014 R can tell us: DF.numbers = data.frame(cubesum=numeric(),sumsquare=numeric()) #initial dataframe for (n in 1:100){ #loop and fill in   DF.numbers[n,”cubesum”] = sum((1:n)^3)   DF.numbers[n,”sumsquare”] […]

So I found a textbook for learning both elementary statistics much of which i knew but hadnt read a textbook about, and for learning R. book is free legally Numbers refer to the page number in the book. The book is in an early version (“0.4”) so many of these are small errors […] Due to this book repeatedly coming up in conversation regarding the super smart people, it seems to be worth reading. It is really old, and should obviously be out of copyright (thanks Disney!), however it possibly isn’t and in any case I couldn’t find a useful PDF. I did however find the above. Now, […]