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….)
OpenEdition suggests that you cite this post as follows:
Arthur Charpentier (January 7, 2017). (Advanced) R Crash Course, for Actuaries. Freakonometrics. Retrieved October 8, 2024 from https://doi.org/10.58079/ov6g
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
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.
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.
Awesome!
Can we do quizz in ioslides?
Best regards
here it was possible (see http://freakonometrics.free.fr/DSA2017/DSAslides.html#47) but I don’t know with ioslides
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.
See http://freakonometrics.free.fr/DSA2017/DSAslides.Rmd for the code