Hello,
In my console I created this command and I wanted to know if it was to repeat it several times. Indeed, I would like to repeat it more than ten times by changing the "#####" by "#####2", "#####3", ...
''''
Tibble4 <- Tibble |>
select(Joueurs,
Date,
Humeur) |>
na.omit() |>
filter(Joueurs == "#####1") |>
mutate(Zscore = (Humeur - mean(Humeur)) / sd(Humeur)) |>
mutate(Bornes = (case_when(Zscore >= '1.65' ~ "Bénéfique",
Zscore <= '- 1.65' ~ "Délétère",
TRUE ~ "Normal")))
ggplot(data = Tibble4) +
aes(x = Date,
y = Zscore,
color = Bornes) +
ylim(-3, 3) +
geom_point() + geom_line()
''''
Is there a command to do this in order to avoid copy and paste.
Thanks in advance