diff --git a/module2/exo1/toy_document_en.Rmd b/module2/exo1/toy_document_en.Rmd index 08bbc6c8833f5b6cde32b2f8a5b1e17828d9ae57..6a19bca80fb914120a51b313d8081c29fe1fd08d 100644 --- a/module2/exo1/toy_document_en.Rmd +++ b/module2/exo1/toy_document_en.Rmd @@ -32,3 +32,7 @@ df$Accept = (df$X**2 + df$Y**2 <=1) library(ggplot2) ggplot(df, aes(x=X,y=Y,color=Accept)) + geom_point(alpha=.2) + coord_fixed() + theme_bw() ``` + +```{r} +4*mean(df$Accept) +``` \ No newline at end of file