Weekly seasonality

Hello,
I have daily observations. 1 observation each day from the 01-01-2022 to 31-12-2022.
I want to visualize the weekly seasonality (effect of Monday, Thursday...) to obtain a plot like this :

And the effect of each day of the month (from the 1st to the 31 th)

Hoy to do this with tseries ? It's possible?

Hi, like this in here?

image

2.4 Seasonal plots | Forecasting: Principles and Practice (3rd ed) (otexts.com)

I have one observation each day. I want to visualize the seasonality (the effect of each day of the week, from Monday to Sunday)

It would help if you were to post some of your data, using dput().

Seconding startz a handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need. Just do dput(mydata) where mydata is your data. Copy the output and paste it here.

I want the weekly and monthly seasonality only for Note.Jour, Stress, Activite, and Sommeil

Date;Note.Jour;Obs.max;Stress;Sommeil;Activite;Glissante.10J;Glissante.20J;Evolution;Stress.10J;Sommeil.10J;Activite.10J;Variation.10J
01/01/2022;7,5;0;2;7,1;17343;;;7,5;;;;
02/01/2022;7,8;0;4;7,67;10494;;;7,65;;;;
03/01/2022;6,5;0;6;6,45;9349;;;7,266666667;;;;
04/01/2022;6,7;0;4;9,83;6201;;;7,125;;;;
05/01/2022;7,7;0;6;7,5;6294;;;7,24;;;;
06/01/2022;7;0;3;8,33;7092;;;7,2;;;;
07/01/2022;7,2;0;2;6,32;8653;;;7,2;;;;
08/01/2022;8,3;0;4;9,33;16374;;;7,3375;;;;
09/01/2022;6,6;0;1;8,17;15055;;;7,255555556;;;;
10/01/2022;6,2;0;5;6,83;9550;7,15;;7,15;3,7;7,753;10640,5;0,093531015
11/01/2022;7,7;0;1;9,17;10449;7,17;;7,2;3,6;7,96;9951,1;0,095287499
12/01/2022;9,8;5;8;8;11351;7,37;;7,416666667;4;7,993;10036,8;0,145302185
13/01/2022;7;0;3;7,17;9002;7,42;;7,384615385;3,7;8,065;10002,1;0,139740653
14/01/2022;6,9;0;4;9;9768;7,44;;7,35;3,7;7,982;10358,8;0,137538236
15/01/2022;6,3;0;6;7,15;15711;7,3;;7,28;3,7;7,947;11300,5;0,147680015
16/01/2022;10;7;5;9,33;14341;7,6;;7,45;3,9;8,047;12025,4;0,179556925
17/01/2022;6,4;0;6;6,33;7827;7,52;;7,388235294;4,3;8,048;11942,8;0,187934899
18/01/2022;6,9;0;4;7;9522;7,38;;7,361111111;4,3;7,815;11257,6;0,189249687
19/01/2022;7;0;6;8,5;6499;7,42;;7,342105263;4,8;7,848;10402;0,185638441
20/01/2022;9;1;6;7,17;10250;7,7;7,425;7,425;4,9;7,882;10472;0,18005744
21/01/2022;7,1;0;2;6,33;15114;7,64;7,405;7,40952381;5;7,598;10938,5;0,18316295
22/01/2022;7,2;0;3;9,5;18985;7,38;7,375;7,4;4,5;7,748;11701,9;0,159536502
23/01/2022;7,1;0;7;0,5;40168;7,39;7,405;7,386956522;4,9;7,081;14818,5;0,158892244
24/01/2022;5,8;0;8;6,67;9115;7,28;7,36;7,320833333;5,3;6,848;14753,2;0,17481011
25/01/2022;7,5;0;3;6,33;9398;7,4;7,35;7,328;5;6,766;14121,9;0,165628615
26/01/2022;6,6;0;3;7,5;9784;7,06;7,33;7,3;4,8;6,583;13666,2;0,117979212
27/01/2022;6,8;0;2;7;9690;7,1;7,31;7,281481481;4,4;6,65;13852,5;0,113649938
28/01/2022;7,8;0;3;10;9271;7,19;7,285;7,3;4,3;6,95;13827,4;0,115706837
29/01/2022;7;0;2;9,33;15901;7,19;7,305;7,289655172;3,9;7,033;14767,6;0,115706837
30/01/2022;7,1;0;2;7,07;19450;7;7,35;7,283333333;3,5;7,023;15687,6;0,076783407
31/01/2022;7,5;0;2;6,5;9453;7,04;7,34;7,290322581;3,5;7,04;15121,5;0,079567998
01/02/2022;6,9;0;6;6,83;9085;7,01;7,195;7,278125;3,8;6,773;14131,5;0,079696013
02/02/2022;6,5;0;4;8,33;11044;6,95;7,17;7,254545455;3,5;7,556;11219,1;0,083417396
03/02/2022;5,2;-1;7;7,17;8432;6,89;7,085;7,194117647;3,4;7,606;11150,8;0,105206889
04/02/2022;7;0;2;9,33;10259;6,84;7,12;7,188571429;3,3;7,906;11236,9;0,101570491
05/02/2022;6,8;0;1;9,33;13672;6,86;6,96;7,177777778;3,1;8,089;11625,7;0,100572527
06/02/2022;7,3;0;3;10;16965;6,91;7,005;7,181081081;3,2;8,389;12353,2;0,10174941
07/02/2022;6;0;6;6;7475;6,73;6,96;7,15;3,5;7,989;12173,6;0,101032835
08/02/2022;7,5;0;5;6,5;9404;6,78;6,985;7,158974359;3,8;7,706;11523,9;0,10608538
09/02/2022;8,4;0;0;8,67;12155;6,91;6,955;7,19;3,6;7,866;10794,4;0,127711124
10/02/2022;6,4;0;4;7,33;7413;6,8;6,92;7,170731707;3,8;7,949;10590,4;0,127827498
11/02/2022;6,5;0;6;9,5;6326;6,76;6,885;7,154761905;3,8;8,216;10314,5;0,129187557
12/02/2022;6,6;0;4;8,5;14953;6,77;6,86;7,141860465;3,8;8,233;10705,4;0,128592045
13/02/2022;7,7;0;2;7,67;20149;7,02;6,955;7,154545455;3,3;8,283;11877,1;0,101796218
14/02/2022;6,4;0;4;8,67;11936;6,96;6,9;7,137777778;3,5;8,217;12044,8;0,106489978
15/02/2022;5,4;-1;7;8,67;12722;6,82;6,84;7,1;4,1;8,151;11949,8;0,130746339
16/02/2022;6,2;0;5;7,33;16582;6,71;6,81;7,080851064;4,3;7,884;11911,5;0,13319578
17/02/2022;8,2;0;3;9,5;16556;6,93;6,83;7,104166667;4;8,234;12819,6;0,139581334
18/02/2022;8,3;0;2;6,83;10228;7,01;6,895;7,128571429;3,7;8,267;12902;0,14968409
19/02/2022;8,9;0;4;8,67;18541;7,06;6,985;7,164;4,1;8,267;13540,6;0,160278648
20/02/2022;7,6;0;1;8,17;17248;7,18;6,99;7,17254902;3,8;8,351;14524,1;0,155618121
21/02/2022;6,8;0;2;8;18344;7,21;6,985;7,165384615;3,4;8,201;15725,9;0,152698915
22/02/2022;8;0;1;8,5;17067;7,35;7,06;7,181132075;3,1;8,201;15937,3;0,150174337
23/02/2022;9,3;2;0;7,5;16894;7,51;7,265;7,22037037;2,9;8,184;15611,8;0,168365892
24/02/2022;7,4;0;2;8,5;21641;7,61;7,285;7,223636364;2,7;8,167;16582,3;0,158348979
25/02/2022;6,7;0;2;7,67;21366;7,74;7,28;7,214285714;2,2;8,067;17446,7;0,128074347
26/02/2022;7,4;0;4;9,67;8713;7,86;7,285;7,21754386;2,1;8,301;16659,8;0,10765494
27/02/2022;7,6;0;1;8,33;14112;7,8;7,365;7,224137931;1,9;8,184;16415,4;0,107773677
28/02/2022;6,6;0;5;6,83;14717;7,63;7,32;7,213559322;2,2;8,184;16864,3;0,117720589
01/03/2022;7,2;0;4;6,5;9695;7,46;7,26;7,213333333;2,2;7,967;15979,7;0,10520867
02/03/2022;6,8;0;6;8,67;14628;7,38;7,28;7,206557377;2,7;8,017;15717,7;0,109673353
03/03/2022;7,7;0;2;7;10853;7,47;7,34;7,214516129;2,7;7,917;14968,6;0,10541785
04/03/2022;7,6;0;1;8,5;11261;7,43;7,39;7,220634921;2,7;7,917;14388;0,103292511
05/03/2022;9,1;1;0;8,33;18535;7,41;7,46;7,25;2,7;8;14552,1;0,096365053
06/03/2022;6,9;0;1;8;14473;7,36;7,485;7,244615385;2,6;7,95;13835,3;0,099472854
07/03/2022;6,1;0;7;6,17;13889;7,3;7,52;7,227272727;3,1;7,8;13087,6;0,111288197
08/03/2022;6,6;0;5;6,17;8267;7,22;7,54;7,217910448;3,2;7,45;13043;0,116394777
09/03/2022;9,9;6;6;8;12023;7,45;7,625;7,257352941;3,7;7,417;12834,1;0,160482384
10/03/2022;7,5;0;1;5,17;12660;7,54;7,585;7,260869565;3,3;7,251;12628,4;0,153551147
11/03/2022;7,9;0;1;8;12214;7,61;7,535;7,27;3;7,401;12880,3;0,151917866
12/03/2022;7,3;0;2;7,67;22738;7,66;7,52;7,270422535;2,6;7,301;13691,3;0,147210538
13/03/2022;6,5;0;3;8,67;15916;7,54;7,505;7,259722222;2,7;7,468;14197,6;0,157198951
14/03/2022;8,1;0;3;5,67;14236;7,59;7,51;7,271232877;2,9;7,185;14495,1;0,157913565
15/03/2022;7;0;3;8,17;6253;7,38;7,395;7,267567568;3,2;7,169;13266,9;0,146747961
16/03/2022;6,8;0;4;8,17;16860;7,37;7,365;7,261333333;3,5;7,186;13505,6;0,147676105
17/03/2022;7,4;0;3;9;7670;7,5;7,4;7,263157895;3,1;7,469;12883,7;0,132441462
18/03/2022;7,6;0;2;9,5;15747;7,6;7,41;7,267532468;2,8;7,802;13631,7;0,123898657
19/03/2022;7,8;0;1;8,17;20415;7,39;7,42;7,274358974;2,3;7,819;14470,9;0,068242857
20/03/2022;3,5;-4;8;8,33;27800;6,99;7,265;7,226582278;3;8,135;15984,9;0,189606739
21/03/2022;7;0;3;8,67;14077;6,9;7,255;7,22375;3,2;8,202;16171,2;0,186475933
22/03/2022;7,5;0;3;7,5;12418;6,92;7,29;7,227160494;3,3;8,185;15139,2;0,187155931
23/03/2022;7,7;0;2;7,17;24600;7,04;7,29;7,232926829;3,2;8,035;16007,6;0,185712323
24/03/2022;7,8;0;1;8,83;14366;7,01;7,3;7,239759036;3;8,351;16020,6;0,183111938
25/03/2022;8,3;0;0;7;22310;7,14;7,26;7,252380952;2,7;8,234;17626,3;0,188622643
26/03/2022;8,2;0;0;8,33;10295;7,28;7,325;7,263529412;2,3;8,25;16969,8;0,189540531
27/03/2022;8,4;0;0;8,67;14932;7,38;7,44;7,276744186;2;8,217;17696;0,193091412
28/03/2022;7,9;0;1;7,17;13706;7,41;7,505;7,283908046;1,9;7,984;17491,9;0,193427068
29/03/2022;7,8;0;2;7,5;26041;7,41;7,4;7,289772727;2;7,917;18054,5;0,193427068
30/03/2022;6,9;0;3;7;14114;7,75;7,37;7,285393258;1,5;7,784;16685,9;0,065299899
31/03/2022;6,2;0;5;9,5;7275;7,67;7,285;7,273333333;1,7;7,867;16005,7;0,087794372
01/04/2022;6;0;4;8,33;7933;7,52;7,22;7,259340659;1,8;7,95;15557,2;0,114014124
02/04/2022;7;0;4;7,83;17674;7,45;7,245;7,256521739;2;8,016;14864,6;0,116717651
03/04/2022;6,7;0;3;9;14618;7,34;7,175;7,250537634;2,2;8,033;14889,8;0,121211727
04/04/2022;6,9;0;3;8,83;20034;7,2;7,17;7,246808511;2,5;8,216;14662,2;0,115276848
05/04/2022;7;0;4;7,83;11736;7,08;7,18;7,244210526;2,9;8,166;14806,3;0,106282117
06/04/2022;7,2;0,5;8;6,5;8778;6,96;7,17;7,24375;3,7;7,949;14190,9;0,085993777
07/04/2022;6,1;0;6;6,83;12869;6,78;7,095;7,231958763;4,2;7,915;14107,2;0,081618509
08/04/2022;6,9;0;5;8,5;13815;6,69;7,05;7,228571429;4,5;8,015;12884,6;0,063982758
09/04/2022;7,5;0;2;10,03;18324;6,75;7,25;7,231313131;4,4;8,318;13305,6;0,073661402
10/04/2022;8;0;1;7,83;26778;6,93;7,3;7,239;4;8,151;15255,9;0,085518044
11/04/2022;8,1;0;1;8,52;16248;7,14;7,33;7,247524752;3,7;8,17;16087,4;0,083825866
12/04/2022;10;8;8;7;19224;7,44;7,445;7,274509804;4,1;8,087;16242,4;0,145067229
13/04/2022;9,6;4;0;9;27486;7,73;7,535;7,297087379;3,8;8,087;17529,2;0,159964734
14/04/2022;8,7;0;0;6,83;23752;7,91;7,555;7,310576923;3,5;7,887;17901;0,155915081
15/04/2022;8,8;0;0;6,17;29152;8,09;7,585;7,324761905;3,1;7,721;19642,6;0,150428113
16/04/2022;7,8;0;0;7,83;12098;8,15;7,555;7,329245283;2,3;7,854;19974,6;0,14509343
17/04/2022;9,7;4;7;7,83;9395;8,51;7,645;7,351401869;2,4;7,954;19627,2;0,120658913
18/04/2022;8,4;0;1;6,83;9100;8,66;7,675;7,361111111;2;7,787;19155,7;0,099512829
19/04/2022;7,9;0;1;10;14101;8,7;7,725;7,366055046;1,9;7,784;18733,4;0,093064811
20/04/2022;7,7;0;4;8,67;7660;8,67;7,8;7,369090909;2,2;7,868;16821,6;0,09727104
21/04/2022;8,5;0;0;7,83;16900;8,71;7,925;7,379279279;2,1;7,799;16886,8;0,094435129
22/04/2022;7,5;0;1;9,17;16360;8,46;7,95;7,380357143;1,4;8,016;16600,4;0,090399561
23/04/2022;6,9;0;4;7,67;17584;8,19;7,96;7,376106195;1,8;7,883;15610,2;0,096905421
24/04/2022;7;0;3;10,5;16151;8,02;7,965;7,372807018;2,1;8,25;14850,1;0,106257697
25/04/2022;6,4;0;5;8,5;16290;7,78;7,935;7,364347826;2,6;8,483;13563,9;0,121001769
26/04/2022;6,1;0;7;8,83;21410;7,61;7,88;7,353448276;3,3;8,583;14495,1;0,141995566
27/04/2022;7,8;0;3;8;18033;7,42;7,965;7,357264957;2,9;8,6;15358,9;0,108339553
28/04/2022;8,3;0;0;9;12182;7,41;8,035;7,365254237;2,8;8,817;15667,1;0,106727457
29/04/2022;6,5;0;4;8,83;7009;7,27;7,985;7,357983193;3,1;8,7;14957,9;0,112506768
30/04/2022;10;95;6;7,17;20985;7,5;8,085;7,38;3,3;8,55;16290,4;0,158760632
01/05/2022;8;0;1;9;21802;7,45;8,08;7,385123967;3,4;8,667;16780,6;0,15489646
02/05/2022;8,1;0;0;7,33;21823;7,51;7,985;7,390983607;3,3;8,483;17326,9;0,15610115
03/05/2022;7,6;0;3;9;14889;7,58;7,885;7,392682927;3,2;8,616;17057,4;0,152055626
04/05/2022;10;9;8;7,17;20994;7,88;7,95;7,413709677;3,7;8,283;17541,7;0,172223494
05/05/2022;6,6;0;6;6,67;12451;7,9;7,84;7,4072;3,8;8,1;17157,8;0,168881824
06/05/2022;8,6;0;4;5,83;31123;8,15;7,88;7,416666667;3,5;7,8;18129,1;0,145438891
07/05/2022;7,9;0;2;8,17;13353;8,16;7,79;7,420472441;3,4;7,817;17661,1;0,144909861
08/05/2022;7,4;0;3;7,83;11877;8,07;7,74;7,4203125;3,7;7,7;17630,6;0,149277181
09/05/2022;8,5;0;0;6,5;17779;8,27;7,77;7,428682171;3,3;7,467;18707,6;0,129865213
10/05/2022;7,8;0;1;8,67;20484;8,05;7,775;7,431538462;2,8;7,617;18657,5;0,11052876
11/05/2022;8,3;0;0;8;24069;8,08;7,765;7,438167939;2,7;7,517;18884,2;0,110511786
12/05/2022;8,4;0;2;7,67;24062;8,11;7,81;7,445454545;2,9;7,551;19108,1;0,110814152
13/05/2022;7,6;0;3;7,5;13996;8,11;7,845;7,446616541;2,9;7,401;19018,8;0,110814152
14/05/2022;9,2;1;0;7,67;16244;8,03;7,955;7,459701493;2,1;7,451;18543,8;0,091144773
15/05/2022;7,7;0;1;7,33;17761;8,14;8,02;7,461481481;1,6;7,517;19074,8;0,068080598
16/05/2022;7,9;0;2;8,67;26477;8,07;8,11;7,464705882;1,4;7,801;18610,2;0,0661013
17/05/2022;8;0;2;8,17;23345;8,08;8,12;7,468613139;1,4;7,801;19609,4;0,065696466
18/05/2022;7,5;0;1;8,67;21089;8,09;8,08;7,46884058;1,2;7,885;20530,6;0,063951189
19/05/2022;7,9;0;2;7,67;20023;8,03;8,15;7,471942446;1,4;8,002;20755;0,062141843
20/05/2022;8,7;0;0;6,5;26045;8,12;8,085;7,480714286;1,3;7,785;21311,1;0,065630111
21/05/2022;10;11;0;4,5;31604;8,29;8,185;7,49858156;1,3;7,435;22064,6;0,096577172
22/05/2022;10;14;0;8,33;25639;8,45;8,28;7,516197183;1,1;7,501;22222,3;0,114500397
23/05/2022;10;10;0;8,5;25560;8,69;8,4;7,533566434;0,8;7,601;23378,7;0,118408433
24/05/2022;10;13,5;0;8,5;36900;8,77;8,4;7,550694444;0,8;7,684;25444,3;0,125605991
25/05/2022;10;20;0;8,33;19090;9;8,57;7,567586207;0,7;7,784;25577,2;0,121490515
26/05/2022;10;13;0;8,5;21705;9,21;8,64;7,584246575;0,5;7,767;25100;0,115072941
27/05/2022;10;13,5;0;8,33;20711;9,41;8,745;7,600680272;0,3;7,783;24836,6;0,105493682
28/05/2022;10;1000;8;6,33;31981;9,66;8,875;7,616891892;1;7,549;25925,8;0,076725698
29/05/2022;10;1000;0;5,17;29407;9,87;8,95;7,632885906;0,8;7,299;26864,2;0,041651074
30/05/2022;10;40;1;7;13857;10;9,06;7,648666667;0,9;7,349;25645,4;0
31/05/2022;10;11;0;8,5;29712;10;9,145;7,664238411;0,9;7,749;25456,2;0
01/06/2022;10;18;0;8;21347;10;9,225;7,679605263;0,9;7,716;25027;0
02/06/2022;10;17;0;8,17;25869;10;9,345;7,694771242;0,9;7,683;25057,9;0
03/06/2022;10;16,5;0;7;21763;10;9,385;7,70974026;0,9;7,533;23544,2;0
04/06/2022;10;20;0;6,17;19796;10;9,5;7,724516129;0,9;7,317;23614,8;0
05/06/2022;10;15;1;6,33;29642;10;9,605;7,739102564;1;7,1;24408,5;0
06/06/2022;7,5;0;2;4,33;8325;9,75;9,58;7,737579618;1,2;6,7;23169,9;0,081084043
07/06/2022;7,4;0;2;8;26394;9,49;9,575;7,735443038;0,6;6,867;22611,2;0,113322732
08/06/2022;6,7;0;3;5,67;14205;9,16;9,515;7,728930818;0,9;6,917;21091;0,149350227
09/06/2022;6,9;0;4;9;12284;8,85;9,425;7,72375;1,2;7,117;20933,7;0,169637936
10/06/2022;7,6;0;1;8,17;16488;8,61;9,305;7,722981366;1,3;7,084;19611,3;0,17291639
11/06/2022;7,5;0;1;8,17;21532;8,36;9,18;7,721604938;1,4;7,101;19629,8;0,172071502
12/06/2022;7,8;0;0;8,83;9212;8,14;9,07;7,72208589;1,4;7,167;17964,1;0,16258765
13/06/2022;7,6;0;1;8,67;12309;7,9;8,95;7,721341463;1,5;7,334;17018,7;0,146286378
14/06/2022;7,9;0;1;7,33;29027;7,69;8,845;7,722424242;1,6;7,45;17941,8;0,116059767
15/06/2022;8,1;0;0;9,33;11426;7,5;8,75;7,724698795;1,5;7,75;16120,2;0,05691666
16/06/2022;8;0;0;8,33;18057;7,55;8,65;7,726347305;1,3;8,15;17093,4;0,060293599
17/06/2022;8,3;0;1;7,33;11779;7,64;8,565;7,729761905;1,2;8,083;15631,9;0,066512527
18/06/2022;8,8;0;1;7,5;16743;7,85;8,505;7,736094675;1;8,266;15885,7;0,065025023
19/06/2022;8,9;0;1;6,5;16158;8,05;8,45;7,742941176;0,7;8,016;16273,1;0,060645211
20/06/2022;7,9;0;0;8,67;15383;8,08;8,345;7,743859649;0,6;8,066;16162,6;0,057696811
21/06/2022;7,1;0;3;8,17;14844;8,04;8,2;7,740116279;0,8;8,066;15493,8;0,066386796
22/06/2022;6,8;0;5;8,33;10383;7,94;8,04;7,734682081;1,3;8,016;15610,9;0,083373243
23/06/2022;6,5;0;3;10;9958;7,83;7,865;7,727586207;1,5;8,149;15375,8;0,102357217
24/06/2022;6,6;0;6;7,17;22052;7,7;7,695;7,721142857;2;8,133;14678,3;0,115512243
25/06/2022;7,8;0;1;10,65;13397;7,67;7,585;7,721590909;2,1;8,265;14875,4;0,114661917
26/06/2022;7,9;0;2;7,5;20771;7,66;7,605;7,72259887;2,3;8,182;15146,8;0,114340574
27/06/2022;7,3;0;2;10,2;19506;7,56;7,6;7,720224719;2,4;8,469;15919,5;0,112619586
28/06/2022;8,4;0;0;10,77;17119;7,52;7,685;7,724022346;2,3;8,796;15957,1;0,105604421
29/06/2022;8,2;0;0;6,83;15731;7,45;7,75;7,726666667;2,2;8,829;15914,4;0,091531421
30/06/2022;7,5;0;1;11,65;7623;7,41;7,745;7,725414365;2,3;9,127;15138,4;0,089619205
01/07/2022;7,4;0;4;8,33;30423;7,44;7,74;7,723626374;2,4;9,143;16696,3;0,088069264
02/07/2022;7,7;0;1;9,97;9615;7,53;7,735;7,723497268;2;9,307;16619,5;0,082115682
03/07/2022;7,9;0;1;8;14124;7,67;7,75;7,724456522;1,8;9,107;17036,1;0,066209598
04/07/2022;7,3;0;2;10,67;18823;7,74;7,72;7,722162162;1,4;9,457;16713,2;0,048418499
05/07/2022;8,7;1;0;8,5;16861;7,83;7,75;7,727419355;1,3;9,242;17059,6;0,061706371
06/07/2022;9,4;3,5;1;8,67;16428;7,98;7,82;7,736363636;1,2;9,359;16625,3;0,086980218
07/07/2022;7,5;0;3;8;12866;8;7,78;7,735106383;1,3;9,139;15961,3;0,08436857
08/07/2022;8,2;0;2;8,67;9044;7,98;7,75;7,737566138;1,5;8,929;15153,8;0,083291185
09/07/2022;9;2;1;8,83;14660;8,06;7,755;7,744210526;1,6;9,129;15046,7;0,091583858
10/07/2022;7,1;0;6;8,5;10533;8,02;7,715;7,740837696;2,1;8,814;15337,7;0,09743786
11/07/2022;7,7;0;2;7,33;16711;8,05;7,745;7,740625;1,9;8,714;13966,5;0,094469851
12/07/2022;7,6;0;2;8,83;9223;8,04;7,785;7,739896373;2;8,6;13927,3;0,095302458
13/07/2022;7,4;0;2;8,83;13029;7,99;7,83;7,73814433;2,1;8,683;13817,8;0,099155716
14/07/2022;8,4;0;1;8,33;11351;8,1;7,92;7,741538462;2;8,449;13070,6;0,09402189
15/07/2022;7,2;0;4;8;11853;7,95;7,89;7,73877551;2,4;8,399;12569,8;0,097838674
16/07/2022;7,8;0;3;8,43;14537;7,79;7,885;7,739086294;2,6;8,375;12380,7;0,07544868
17/07/2022;6,4;0;7;8,5;9689;7,68;7,84;7,732323232;3;8,425;12063;0,095446646
18/07/2022;8;0;7;7,5;8110;7,66;7,82;7,733668342;3,5;8,308;11969,6;0,09397866
19/07/2022;8,8;0,5;0;9;16571;7,64;7,85;7,739;3,4;8,325;12160,7;0,089030897
20/07/2022;8,3;0;1;8;11135;7,76;7,89;7,741791045;2,9;8,275;12220,9;0,08765413
21/07/2022;6,8;0;8;9,67;8963;7,67;7,86;7,737128713;3,5;8,509;11446,1;0,097187813
22/07/2022;7,9;0;2;9,17;25097;7,7;7,87;7,737931034;3,5;8,543;13033,5;0,097185906
23/07/2022;6,5;0;8;4,67;10898;7,61;7,8;7,731862745;4,1;8,127;12820,4;0,110020687
24/07/2022;8,1;0;1;9,33;13271;7,58;7,84;7,733658537;4,1;8,227;13012,4;0,106960549
25/07/2022;7,6;0;3;8,67;24825;7,62;7,785;7,733009709;4;8,294;14309,6;0,104950417
26/07/2022;7,9;0;1;8,5;14022;7,63;7,71;7,733816425;3,8;8,301;14258,1;0,105221779
27/07/2022;9,7;4;0;8,17;13096;7,96;7,82;7,743269231;3,1;8,268;14598,8;0,114559884
28/07/2022;8,3;0;0;7,83;11140;7,99;7,825;7,745933014;2,4;8,301;14901,8;0,114927575
29/07/2022;7,8;0;2;9,33;11624;7,89;7,765;7,746190476;2,6;8,334;14407,1;0,110725717
30/07/2022;6,8;0;5;7,83;17052;7,74;7,75;7,741706161;3;8,317;14998,8;0,119224506
31/07/2022;7;0;6;6,67;15164;7,76;7,715;7,738207547;2,8;8,017;15618,9;0,116249526
01/08/2022;7,5;0;2;6,67;23604;7,72;7,71;7,737089202;2,8;7,767;15469,6;0,117106852
02/08/2022;8;0;1;8,33;15168;7,87;7,74;7,738317757;2,1;8,133;15896,6;0,101307124
03/08/2022;9,5;3,5;0;8,33;12856;8,01;7,795;7,746511628;2;8,033;15855,1;0,118649194
04/08/2022;8,5;0;0;6,5;12404;8,1;7,86;7,75;1,7;7,816;14613;0,1172659
05/08/2022;8,1;0;0;7,67;10020;8,12;7,875;7,751612903;1,6;7,733;14212,8;0,116659704
06/08/2022;7,9;0;1;8,83;13352;7,94;7,95;7,752293578;1,7;7,799;14238,4;0,0966852
07/08/2022;10;7;0;7,5;13320;8,11;8,05;7,762557078;1,7;7,766;14456,4;0,124185101
08/08/2022;7,6;0;1;7;21809;8,09;7,99;7,761818182;1,6;7,533;15474,9;0,125578331
09/08/2022;8;0;1;8,5;13063;8,21;7,975;7,762895928;1,2;7,6;15076;0,111108556
10/08/2022;6,7;0;8;8,83;6298;8,18;7,97;7,758108108;1,4;7,816;14189,4;0,117370732
11/08/2022;5,9;-1;7;11,19;17056;8,02;7,87;7,749775785;1,9;8,268;13534,6;0,148559979
12/08/2022;7,4;0;3;7,5;13157;7,96;7,915;7,748214286;2,1;8,185;13333,5;0,151704614
13/08/2022;7,6;0;6;10,17;8033;7,77;7,89;7,747555556;2,7;8,369;12851,2;0,13915097
14/08/2022;7,8;0;4;9;17109;7,7;7,9;7,747787611;3,1;8,619;13321,7;0,136483834
15/08/2022;6,9;0;3;8,5;15435;7,58;7,85;7,744052863;3,4;8,702;13863,2;0,140968341
16/08/2022;8,2;0;2;9,17;14079;7,61;7,775;7,746052632;3,5;8,736;13935,9;0,142265546
17/08/2022;8;0;2;9,17;16077;7,41;7,76;7,747161572;3,7;8,903;14211,6;0,096365053
18/08/2022;7,3;0;3;7,33;14982;7,38;7,735;7,745217391;3,9;8,936;13528,9;0,096408259
19/08/2022;6,4;0;5;8,83;15121;7,22;7,715;7,739393939;4,3;8,969;13734,7;0,101946753
20/08/2022;8,1;0;1;9,67;19828;7,36;7,77;7,740948276;3,6;9,053;15087,7;0,10311775
21/08/2022;7,8;0;1;10,17;13308;7,55;7,785;7,741201717;3;8,951;14712,9;0,074990233
22/08/2022;8;0;1;8;14278;7,61;7,785;7,742307692;2,8;9,001;14825;0,076233125
23/08/2022;8,1;0;2;8,67;10552;7,66;7,715;7,743829787;2,4;8,851;15076,9;0,078377318
24/08/2022;7,4;0;2;8,33;13101;7,62;7,66;7,742372881;2,2;8,784;14676,1;0,079176394
25/08/2022;10;9,5;2;5;40820;7,93;7,755;7,751898734;2,1;8,434;17214,6;0,11481644
26/08/2022;7,9;0;2;7,33;21009;7,9;7,755;7,752521008;2,1;8,25;17907,6;0,114625128
27/08/2022;7;0;4;7,67;17416;7,8;7,605;7,749372385;2,3;8,1;18041,5;0,121475815
28/08/2022;8,6;0;1;10;11900;7,93;7,655;7,752916667;2,1;8,367;17733,3;0,121107424
29/08/2022;8,2;0;0;7,33;16125;8,11;7,665;7,754771784;1,6;8,217;17833,7;0,098205975
30/08/2022;6,9;0;6;8,83;15237;7,99;7,675;7,751239669;2,1;8,133;17374,6;0,110606013
31/08/2022;7,8;0;1;8,83;15332;7,99;7,77;7,751440329;2,1;7,999;17577;0,110606013
01/09/2022;7,9;0;2;7,83;15649;7,98;7,795;7,75204918;2,2;7,982;17714,1;0,110799747
02/09/2022;7,3;0;4;10,49;13504;7,9;7,78;7,750204082;2,4;8,164;18009,3;0,114935346
03/09/2022;7,6;0;3;9,5;13184;7,92;7,77;7,749593496;2,5;8,281;18017,6;0,113371058
04/09/2022;7,7;0;2;9,67;10657;7,69;7,81;7,749392713;2,5;8,748;15001,3;0,067833902
05/09/2022;8,3;0;2;6,33;26436;7,73;7,815;7,751612903;2,5;8,648;15544;0,071652683
06/09/2022;7,5;0;4;9,5;12003;7,78;7,79;7,75060241;2,5;8,831;15002,7;0,064352985
07/09/2022;8;0;2;8,17;17145;7,72;7,825;7,7516;2,6;8,648;15527,2;0,054547882
08/09/2022;6,8;0;4;6,17;12686;7,58;7,845;7,747808765;3;8,532;15183,3;0,062438837
09/09/2022;8,3;0;3;7,33;30293;7,72;7,855;7,75;2,7;8,382;16688,9;0,059139529
10/09/2022;7,4;0;3;8,7;17756;7,68;7,835;7,748616601;2,9;8,369;16931,3;0,060701853
11/09/2022;8,5;0;0;8,83;14964;7,74;7,86;7,751574803;2,7;8,469;16862,8;0,068690446
12/09/2022;8,4;0;0;10,37;19033;7,85;7,875;7,754117647;2,3;8,457;17415,7;0,069319863
13/09/2022;7,4;0;6;7,17;16831;7,83;7,875;7,752734375;2,6;8,224;17780,4;0,071248141
14/09/2022;8,6;0;1;7,17;15453;7,92;7,805;7,756031128;2,5;7,974;18260;0,076409466
15/09/2022;6,1;0;7;6,17;13096;7,7;7,715;7,749612403;3;7,958;16926;0,105861639
16/09/2022;6,9;0;4;9,33;16084;7,64;7,71;7,746332046;3;7,941;17334,1;0,111611008
17/09/2022;7;0;3;7,67;11751;7,54;7,63;7,743461538;3,1;7,891;16794,7;0,11463606
18/09/2022;8,7;1;4;8,83;10067;7,73;7,655;7,747126437;3,1;8,157;16532,8;0,11539476
19/09/2022;8;0;1;9;11687;7,7;7,71;7,748091603;2,9;8,324;14672,2;0,113713641
20/09/2022;8;0;2;7;22896;7,76;7,72;7,74904943;2,8;8,154;15186,2;0,112539676
21/09/2022;7,6;0;3;6,83;15910;7,67;7,705;7,748484848;3,1;7,954;15280,8;0,108743982
22/09/2022;7,7;0;1;6,67;14990;7,6;7,725;7,748301887;3,2;7,584;14876,5;0,104529608
23/09/2022;8,2;0;0;9,5;15040;7,68;7,755;7,75;2,6;7,817;14697,4;0,105746127
24/09/2022;7,9;0;1;7,83;16161;7,61;7,765;7,750561798;2,6;7,883;14768,2;0,098812142
25/09/2022;6,6;0;3;9,83;16856;7,66;7,68;7,746268657;2,2;8,249;15144,2;0,084873132
26/09/2022;6,3;0;4;7;19023;7,6;7,62;7,740892193;2,2;8,016;15438,1;0,098464668
27/09/2022;7,4;0;3;7;11170;7,64;7,59;7,73962963;2,2;7,949;15380;0,094627865
28/09/2022;7,2;0;5;6,5;11121;7,49;7,61;7,737638376;2,3;7,716;15485,4;0,083839741
29/09/2022;6,3;0;7;6,5;10797;7,32;7,51;7,732352941;2,9;7,466;15396,4;0,095693447
30/09/2022;6,2;0;8;7,67;13979;7,14;7,45;7,726739927;3,5;7,533;14504,7;0,103173547
01/10/2022;6,5;0;4;11;13268;7,03;7,35;7,722262774;3,6;7,95;14240,5;0,105610727
02/10/2022;6,6;0;4;9,5;22238;6,92;7,26;7,718181818;3,9;8,233;14965,3;0,103042327
03/10/2022;6,5;0;6;6,5;10587;6,75;7,215;7,713768116;4,5;7,933;14520;0,083001167
04/10/2022;7,7;0;1;9,83;11561;6,73;7,17;7,713718412;4,5;8,133;14060;0,076746709
05/10/2022;8,1;0;0;6,33;23423;6,88;7,27;7,715107914;4,2;7,783;14716,7;0,097334295
06/10/2022;6,4;0;6;6,17;8145;6,89;7,245;7,710394265;4,4;7,7;13628,9;0,09589601
07/10/2022;8;0;1;8,33;12824;6,95;7,295;7,711428571;4,2;7,833;13794,3;0,105787746
08/10/2022;8,2;0;2;10,22;24017;7,05;7,27;7,71316726;3,9;8,205;15083,9;0,118345069
09/10/2022;8,1;0;0;9,67;11179;7,23;7,275;7,714539007;3,2;8,522;15122,1;0,117371177
10/10/2022;7,7;0;3;6,17;24074;7,38;7,26;7,714487633;2,7;8,372;16131,6;0,105114278
11/10/2022;7,8;0;6;9,82;11838;7,51;7,27;7,714788732;2,9;8,254;15988,6;0,095701464
12/10/2022;7,5;0;3;6,17;17742;7,6;7,26;7,714035088;2,8;7,921;15539;0,084820525
13/10/2022;6,9;0;5;6,33;10990;7,64;7,195;7,711188811;2,7;7,904;15579,3;0,07561977
14/10/2022;7,7;0;4;8,17;11099;7,64;7,185;7,711149826;3;7,738;15533,1;0,07561977
15/10/2022;7,9;0;1;9,17;20302;7,62;7,25;7,711805556;3,1;8,022;15221;0,073926965
16/10/2022;10;7,5;3;8,64;16191;7,98;7,435;7,719723183;2,8;8,269;16025,6;0,100041553
17/10/2022;9,1;2,5;2;6;17184;8,09;7,52;7,724482759;2,9;8,036;16461,6;0,107988369
18/10/2022;8,5;0;0;9,67;14912;8,12;7,585;7,727147766;2,7;7,981;15551,1;0,108734536
19/10/2022;8,4;0;2;5,83;13564;8,15;7,69;7,729452055;2,9;7,597;15789,6;0,108865699
20/10/2022;7,5;0;4;6,67;14581;8,13;7,755;7,728668942;3;7,647;14840,3;0,110784595
21/10/2022;7,6;0;5;7,17;10214;8,11;7,81;7,728231293;2,9;7,382;14677,9;0,112328283
22/10/2022;7,9;0;3;7,83;16844;8,15;7,875;7,728813559;2,9;7,548;14588,1;0,109172579
23/10/2022;8;0;1;9;15034;8,26;7,95;7,72972973;2,5;7,815;14992,5;0,094330914
24/10/2022;6,4;0;7;5,83;12501;8,13;7,885;7,725252525;2,8;7,581;15132,7;0,119120128
25/10/2022;6,7;0;6;7,67;12311;8,01;7,815;7,721812081;3,3;7,431;14333,6;0,133485107
26/10/2022;7,4;0;5;6;16572;7,75;7,865;7,720735786;3,5;7,167;14371,7;0,105573658
27/10/2022;7,9;0;3;5,83;13904;7,63;7,86;7,721333333;3,6;7,15;14043,7;0,088254631
28/10/2022;8,4;0;0;5,67;17263;7,62;7,87;7,72358804;3,6;6,75;14278,8;0,086565555
29/10/2022;7,8;0;2;9,67;14882;7,56;7,855;7,72384106;3,6;7,134;14410,6;0,080145099
30/10/2022;8,6;0;3;9,03;21204;7,67;7,9;7,726732673;3,5;7,37;15072,9;0,089709647
31/10/2022;7,3;0;7;8,5;20482;7,64;7,875;7,725328947;3,7;7,503;16099,7;0,091352547
01/11/2022;6,8;0;4;8,83;18099;7,53;7,84;7,722295082;3,8;7,603;16225,2;0,09800001
02/11/2022;7,9;0;3;9,08;19441;7,52;7,89;7,722875817;4;7,611;16665,9;0,097275651
03/11/2022;6,9;0;3;9,07;16355;7,57;7,85;7,72019544;3,6;7,935;17051,3;0,087192933
04/11/2022;7,1;0;4;9,62;17608;7,61;7,81;7,718181818;3,4;8,13;17581;0,080397879
05/11/2022;6,3;0;5;8,5;16577;7,5;7,625;7,713592233;3,4;8,38;17581,5;0,098582547
06/11/2022;6,1;0;5;11,13;14799;7,32;7,475;7,708387097;3,6;8,91;17671;0,115165366
07/11/2022;5,8;0;7;6,67;11065;7,06;7,34;7,702250804;4,3;9,01;17051,2;0,123698001
08/11/2022;8,5;0;0;9,27;30297;7,13;7,345;7,704807692;4,1;8,97;18592,7;0,135020054
09/11/2022;6,5;0;4;5,67;9050;6,92;7,295;7,700958466;4,2;8,634;17377,3;0,119320572
10/11/2022;8;0;4;7,5;9656;6,99;7,315;7,701910828;3,9;8,534;16294,7;0,127146915
11/11/2022;7,7;0;2;10,08;23443;7,08;7,305;7,701904762;3,7;8,659;16829,1;0,128902184
12/11/2022;6,7;0;4;9,15;16336;6,96;7,24;7,698734177;3,8;8,666;16518,6;0,125109133
13/11/2022;7,5;0;3;8,83;14472;7,02;7,295;7,698107256;3,8;8,642;16330,3;0,126309363
14/11/2022;7,4;0;3;5,67;17617;7,05;7,33;7,697169811;3,7;8,247;16331,2;0,126913149
15/11/2022;7;0;3;9,5;16744;7,12;7,31;7,694984326;3,5;8,347;16347,9;0,120237261
16/11/2022;7,5;0;2;8,17;14617;7,26;7,29;7,694375;3,2;8,051;16329,7;0,107716278
17/11/2022;8;0;2;6,83;20131;7,48;7,27;7,695327103;2,7;8,067;17236,3;0,082604503
18/11/2022;8,6;0,5;1;9,5;8795;7,49;7,31;7,698136646;2,8;8,09;15086,1;0,08501271
19/11/2022;6,3;0;4;7,5;16298;7,47;7,195;7,69380805;2,8;8,273;15810,9;0,090144958
20/11/2022;7,8;0;2;9;14261;7,45;7,22;7,694135802;2,6;8,423;16271,4;0,088416433
21/11/2022;8,1;0;6;5,5;10436;7,49;7,285;7,695384615;3;7,965;14970,7;0,091736104
22/11/2022;7,9;0;2;7;11241;7,61;7,285;7,69601227;2,8;7,75;14461,2;0,083672168
23/11/2022;8,7;0;2;9,5;15271;7,73;7,375;7,699082569;2,7;7,817;14541,1;0,093297192
24/11/2022;8;0;1;6,67;36975;7,79;7,42;7,7;2,5;7,917;16476,9;0,09186385
25/11/2022;6,5;0;5;8,17;11312;7,74;7,43;7,696352584;2,7;7,784;15933,7;0,102131672
26/11/2022;8,3;0;2;9,17;15357;7,82;7,54;7,698181818;2,7;7,884;16007,7;0,102797888
27/11/2022;7,4;0;3;10;19844;7,76;7,62;7,697280967;2,8;8,201;15979;0,104550123
28/11/2022;7,5;0;4;5,83;10318;7,65;7,57;7,696686747;3,1;7,834;16131,3;0,099026738
29/11/2022;7,3;0;3;8,83;12914;7,75;7,61;7,695495495;3;7,967;15792,9;0,078898651
30/11/2022;6,7;0;4;8,83;8392;7,64;7,545;7,69251497;3,2;7,95;15206;0,090934837
01/12/2022;8,1;0;7;6,17;10315;7,64;7,565;7,693731343;3,3;8,017;15193,9;0,090934837
02/12/2022;7,2;0;6;6,17;10310;7,57;7,59;7,692261905;3,7;7,934;15100,8;0,092585531
03/12/2022;7,5;0;1;10,62;20184;7,45;7,59;7,691691395;3,6;8,046;15592,1;0,077561234
04/12/2022;7,9;0;4;10;11458;7,44;7,615;7,692307692;3,9;8,379;13040,4;0,076349134
05/12/2022;7,4;0;7;6,83;10003;7,53;7,635;7,691445428;4,1;8,245;12909,5;0,061673208
06/12/2022;6,8;0;5;9,83;19107;7,38;7,6;7,688823529;4,4;8,311;13284,5;0,058123606
07/12/2022;6,9;0;2;9,83;12590;7,33;7,545;7,686510264;4,3;8,294;12559,1;0,062036596
08/12/2022;7,3;0;2;11,05;11784;7,31;7,48;7,685380117;4,1;8,816;12705,7;0,061669187
09/12/2022;7;0;6;9,29;10047;7,28;7,515;7,683381924;4,4;8,862;12419;0,063378961
10/12/2022;9,3;4,5;3;10,87;12043;7,54;7,59;7,688081395;4,3;9,066;12784,1;0,098695287
11/12/2022;6,5;0;4;9,43;15974;7,38;7,51;7,684637681;4;9,392;13350;0,105887756
12/12/2022;7,4;0;4;6,3;9696;7,4;7,485;7,683815029;3,8;9,405;13288,6;0,105255148
13/12/2022;6,3;0;5;10,17;17347;7,28;7,365;7,679827089;4,2;9,36;13004,9;0,116879381
14/12/2022;9,4;4,5;4;6,07;8909;7,43;7,435;7,684770115;4,2;8,967;12750;0,144686323
15/12/2022;8;0;1;10,1;12374;7,49;7,51;7,685673352;3,6;9,294;12987,1;0,145500828
16/12/2022;7,6;0;2;9,67;21218;7,57;7,475;7,685428571;3,3;9,278;13198,2;0,140362499
17/12/2022;6,6;0;3;8,78;12999;7,54;7,435;7,682336182;3,4;9,173;13239,1;0,144231404
18/12/2022;10;9;8;5,83;20548;7,81;7,56;7,688920455;4;8,651;14115,5;0,170235117
19/12/2022;9,2;3;3;8,17;34257;8,03;7,655;7,693201133;3,7;8,539;16536,5;0,169642412
20/12/2022;10;9;3;8,17;31420;8,1;7,82;7,699717514;3,7;8,269;18474,2;0,17900052
21/12/2022;10;10;0;8;30198;8,45;7,915;7,706197183;3,3;8,126;19896,6;0,170790912
22/12/2022;10;11;0;8,83;29090;8,71;8,055;7,712640449;2,9;8,379;21836;0,168427961
23/12/2022;10;20;2;8,17;21665;9,08;8,18;7,719047619;2,6;8,179;22267,8;0,136650692
24/12/2022;10;20;0;8,83;34328;9,14;8,285;7,725418994;2,2;8,455;24809,7;0,139178735
25/12/2022;10;9,3;0;5,83;21153;9,34;8,415;7,731754875;2,1;8,028;25687,6;0,131633122
26/12/2022;7,7;0;0;8,83;16309;9,35;8,46;7,731666667;1,9;7,944;25196,7;0,129843664
27/12/2022;7;0;1;9,43;17869;9,39;8,465;7,729639889;1,7;8,009;25683,7;0,118849289
28/12/2022;7,9;0;1;9,5;26870;9,18;8,495;7,730110497;1;8,376;26315,9;0,128972436
29/12/2022;7,8;0;2;11;10464;9,04;8,535;7,73030303;0,9;8,659;23936,6;0,139554058
30/12/2022;8,3;0;3;7,33;20819;8,87;8,485;7,731868132;0,9;8,575;22876,5;0,138898121
31/12/2022;9;2,5;3;7,67;34265;8,77;8,61;7,735342466;1,2;8,542;23283,2;0,133305897

I've tried this,
anneets <- ts(JOURS2022TS$Note.Jour, start=c(2022,01,01), freq=7)
print(anneets)
plotst= stl(anneets, s.window="periodic")
decompose(anneets, type = c("additive"))
plot(plotst)

The result is :


And :
$figure
[1] 0.08719334 0.14937821 -0.23325484 -0.06252116 0.26605027 -0.13213439 -0.07471142

However, i have three problems
First, I dont have the weekly seasonality on the plot
Second, the x-axis of the plot is not adaptated
Third, the figures of the console (in bold, above) are related to the weekly seasonality or not ? The first day of 2022 was a Saturday and the first number is for Saturdays ?

Comment is the result of caffeine deprivation

> While I'm thinking about this, the source data suggests that the time series is daily (frequency = 365) not weekly.

But I have 1 year of data, no more and it's impossible to generate a "daily seasonality" with a 365-frequency. I want to observate what are the effect of each day of the week on the data

I have 7 coefficients with my function but I don't know if the first is for Saturday etc... Moreover my objective is represent this weekly seasonality with a plot.

1 Like

We may be using seasonality differently. Seasonality is periodicity in data, recurring patterns that can be subtracted from a time series to leave a trend and a remainder. It sounds like you want to aggregate the data by week.

Run below and we can discuss tomorrow sometime (US PST)

# data
input <- read.csv("https://gist.githubusercontent.com/technocrat/fa98b6fa6fe2fd7b0e1a5bbbbefa196e/raw/0d79020dd9661755cb50d7881d20a9e2b8c1de14/input2023-01-19.csv")
# inspect
head(input)
# subset
d <- input[c(2,4:6)]
head(d)
str(d)
# make first column consistent
d[1] <- as.integer(d[[1]])
# convert third column to numeric
d[3]<- d[3][[1]] |> gsub(",",".",x = _) |> as.numeric()
str(d)
# make time series
series <- ts(d, start = c(2022,1,1), frequency = 7)

# overview
plot(series)
# break out variables
jour <- series[,1]
stre <- series[,2]
somm <- series[,3]
acti <- series[,4]
# seasonal decomposition
# x-axes lables to be fixed later
plot(decompose(jour))
plot(decompose(stre))
plot(decompose(somm))
plot(decompose(acti))
plot(jour, s.window = "periodic")
plot(stre, s.window = "periodic")
plot(somm, s.window = "periodic")
plot(acti, s.window = "periodic")

I have this i think it's good.


1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.