RCurl in R on Mint 17

So I was installing something (forgot what), and had problems with RCurl: * installing *source* package ‘RCurl’ … ** package ‘RCurl’ successfully unpacked and MD5 sums checked checking for curl-config… no Cannot find curl-config ERROR: configuration failed for package ‘RCurl’ * removing ‘/home/lenovo/R/x86_64-pc-linux-gnu-library/3.1/RCurl’ Warning in install.packages : installation of package ‘RCurl’ had non-zero exit status…

Continue Reading

Sometimes doing elementary things in R is a pain

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…

Continue Reading

Installing R on Mint 17

As nearly always, when one wants to do something in Linux, it becomes a test of both intelligence and patience. Mostly the latter. In this case I had installed the newest Mint on my new laptop, Mint 17. Then I set out to install R. Since this language’s name is but a single letter, it…

Continue Reading

Is the summed cubes equal to the squared sum of counting integer series?

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”]…

Continue Reading

Comments on Learning Statistics with R

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. http://health.adelaide.edu.au/psychology/ccs/teaching/lsr/ book is free legally https://www.goodreads.com/book/show/18142866-learning-statistics-with-r 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…

Continue Reading