(Advanced) R Crash Course, for Actuaries

In two weeks, the third year of the Data Science for Actuaries program will start. I will be there for the introduction to R. The slides are available online (created with slidify)

A markdown is also available. I have to thank Ewen for his help on slidify (especially for the online quizz, and the integration of leaflet maps or the rgl animated graph….)



Cite this blog post
Arthur Charpentier (2017, January 7). (Advanced) R Crash Course, for Actuaries. Freakonometrics. Retrieved June 24, 2024, from https://doi.org/10.58079/ov6g

10 thoughts on “(Advanced) R Crash Course, for Actuaries”

  1. In one of the quizzes the solution is wrong, there is plus sign between 5 and i*j (5+i*j) and not (5*i*j).

    s=0; for(i in 1:10) for(j in i:10) s=s+i*i/(5+i*j); s

    1. Another one:
      While computing 1:3 * 1:5 there is an error in R
      Warning message:
      In 1:3 * 1:5 :
      longer object length is not a multiple of shorter object length

      Also (1:3)*(1:5) yield the same error.

      1. In the quizz about the roots of the polynomial

        options(digits=3)
        polyroot(c(-1,1,1)) gives 0.618 and -1.618
        your solution has the wrong signs.

  2. Hello!
    Great presentation!
    How did you include googleVis graph in slidify?
    When I tried to include Sankey diagram into slidify presentation – nothing happened at all.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.