From 6cef983b7d9d9f51b04f124ddd56e7f78f96d8ba Mon Sep 17 00:00:00 2001 From: Pragati Date: Mon, 18 Mar 2024 09:29:47 -0400 Subject: [PATCH] added random_numbers4 (binomial) --- code/01_make_output.R | 9 + output/random_numbers1.rds | Bin 0 -> 854 bytes output/random_numbers2.rds | Bin 0 -> 854 bytes output/random_numbers3.rds | Bin 0 -> 645 bytes output/random_numbers4.rds | Bin 0 -> 88 bytes report.Rmd | 10 + report.html | 438 +++++++++++++++++++++++++++++++++++++ 7 files changed, 457 insertions(+) create mode 100644 output/random_numbers1.rds create mode 100644 output/random_numbers2.rds create mode 100644 output/random_numbers3.rds create mode 100644 output/random_numbers4.rds create mode 100644 report.html diff --git a/code/01_make_output.R b/code/01_make_output.R index 6d9fd5c..7b70b57 100644 --- a/code/01_make_output.R +++ b/code/01_make_output.R @@ -25,3 +25,12 @@ saveRDS( random_numbers3, file = here::here("output", "random_numbers3.rds") ) + +set.seed(4) +random_numbers4 <- rbinom(100, 1, 0.25) + +saveRDS( + random_numbers4, + file = here::here("output", "random_numbers4.rds") +) + diff --git a/output/random_numbers1.rds b/output/random_numbers1.rds new file mode 100644 index 0000000000000000000000000000000000000000..0d8d7fff95e998b8c743a28ec6ac54c11ff8e703 GIT binary patch literal 854 zcmV-c1F8HUiwFP!000000|7q+!2DPW0000300aX900RX800005Ra8bTH~;_u4gdfE zWWVGK=-jgS_dmyhpWD>W2EXdPcsD%ddO!JwMJbWxI6u`Er^D`JFu&?SM(L&s{XgF_ z37^wFK|kl9TOrGPjX&aS%>!Ta8Nbtud%N0;2S4~QL32|_>_6D^F$=v6mA~WRGwloj z)W89^w381G+CTCCw~zYqM8Bs2iMniGr@xStE-Dx-`9JP6=l?a3%|Gf#ajW-EazEn% zJy-R`#6Rt5Lpz#CV?XH!LbVj|ct5iiu+;kVdcXhFVsW3E?my$zoX(A=5WlRv=lMw& z^1s9J8*dchwZHd>Gp5zZVZYv*0_6Dg zoR?1v`oF7;Rg+V?J-_w{Z<-U4<-gjGMO#?(j=$MF3+@#1jlZs5Q&ugl#Xs?xv@}-^ zV?XF??~E5W7r(_18}zCx-@ni|6X=h<2|wmdh9dj$l|SLoFIOfNU%%!GNnzl`I=|+l z%;G0u(LdK!Pn89=Wk2Yb(p(lSpufDrxT^!h+&}Cx2-K_fixSeO$_ZomBD988;qCqMUc>8Fl>pg+T%&MnWp89)JHf;u?pGe6#Lzl7u6;lJj$ z;gi=BV?X1I5&mILbHDB6Ah%`Q6uh4jhHQj=$Vq+_m@tiR$| gFtx&I1i$l`17)-xq`%%wGA`O>J+9h>kUs+e0P+#K$^ZZW literal 0 HcmV?d00001 diff --git a/output/random_numbers2.rds b/output/random_numbers2.rds new file mode 100644 index 0000000000000000000000000000000000000000..73c37c59233119394d59e4aaca93182cb948f3f6 GIT binary patch literal 854 zcmV-c1F8HUiwFP!000000|7q+!2DPW0000300aX900RX800005Ra8bTH~;_u4gdfE zWIwSWRDf9#&p)a#DM_>H**}z@*1UKV1wZ2V{TX(3hP#6O~TijK#3 zT|b9{x#yusEkE=JC5ocVG(XVWVf?0ne?Rr?5ka%UWk0$DTpw48`#;MKQBYDPDL=5l zzaVq05oT;R6o@H`s@d!>Oc5a)>^n43qS&kguo){vp@nY`Bke`FhBz-p!s>=oIn=V zo;hnN7C*IQ9H)smqd&zbUcmMc`#XPIn;-bU*c_9(k7C-o1 z$8aY#mp|Q6e}TQYBtPr>B68J4FF*VI)#4;&<3IX6_u}3%CO_hUz~>lskw3Y4R-PyO z3O~u7L38#uTtEYdfhLHdop#(wSQ*b3Ny5|W# zZa=r4O`FmLkU!u%nB7$Fem~xqi!YuDRX_4U#O1) zq5(&8%s=W$SGg}kmOsNr){V#bEI+t|-X?V82|xVu?t)9?R6o)t;?=(&!auN`;7|YW z$v@@Su7z+5%s&GF0Fxe>8~^|S literal 0 HcmV?d00001 diff --git a/output/random_numbers3.rds b/output/random_numbers3.rds new file mode 100644 index 0000000000000000000000000000000000000000..5aef73ff39b6940ec2c731cf34c5473ea512bea4 GIT binary patch literal 645 zcmV;00($))iwFP!0000010|AeNK;`H$8T;zi&iM635hF-7^$Q(EDAT8l%ry3Swkh4 zSrimPR<;#eZLMzWmCV2oN$Q6zdh>&9n$?nRw$yaFFEt&=ua}b7I`JML}PIU#!&NFl* z+iO8z`H?O;xUaYby4S%!rQiqmOQ(t9%-P{l#QqI)C!qHNkMxsZ$J8t35-1O=ArE}$5(x2Ugot-`WX3x04oN zZadFt0DF|mN2nW6>8e0Sc2*;~e}{V!e8*}uNz{*s>0@9lO%O%?+grtPFv?EfjeLB~ z4hJ~RuegNz(f(Il#HPBc{Yl&o7YFZ literal 0 HcmV?d00001 diff --git a/output/random_numbers4.rds b/output/random_numbers4.rds new file mode 100644 index 0000000000000000000000000000000000000000..456bc3b56de6b3b35068ead121880d27ab55ced3 GIT binary patch literal 88 zcmb2|=3oE==I#ec2?+^l35jV*32CfGk`d0%cS>{{c;XcN5)ZKSWaPNXJbIB6lXdZ` rz$X6rHhRA=Jl%LQ@$uu!{wHK_9J%=Q(P#6pV#a-~Y#Y`yGB5xDfU+d_ literal 0 HcmV?d00001 diff --git a/report.Rmd b/report.Rmd index f4ef1ac..3c34c7f 100644 --- a/report.Rmd +++ b/report.Rmd @@ -26,6 +26,9 @@ random_numbers2 <- readRDS( random_numbers3 <- readRDS( here::here("output/random_numbers3.rds") ) +random_numbers4 <- readRDS( + here::here("output/random_numbers4.rds") +) ``` # Random numbers 1 @@ -48,3 +51,10 @@ hist(random_numbers2) #| fig.cap = "Third set of random numbers" hist(random_numbers3) ``` + +# Random numbers 4 + +```{r, random-numbers4-histogram} +#| fig.cap = "Fourth set of random numbers" +hist(random_numbers4) +``` diff --git a/report.html b/report.html new file mode 100644 index 0000000..aead5d0 --- /dev/null +++ b/report.html @@ -0,0 +1,438 @@ + + + + + + + + + + + + + + +Three sets of random numbers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+

Random numbers 1

+
hist(random_numbers1)
+
+First set of random numbers +

+First set of random numbers +

+
+
+
+

Random numbers 2

+
hist(random_numbers2)
+
+Second set of random numbers +

+Second set of random numbers +

+
+
+
+

Random numbers 3

+
hist(random_numbers3)
+
+Third set of random numbers +

+Third set of random numbers +

+
+
+
+

Random numbers 4

+
hist(random_numbers4)
+
+Fourth set of random numbers +

+Fourth set of random numbers +

+
+
+ + + + +
+ + + + + + + + + + + + + + +