I have this vector:
Photoperiod <- c("Day","Sunset","Night","Sunrise")
I would like to create a vector in which Day
is repeated 12 times, Sunset
2 twice, Night
8 times and Sunrise
twice until I get a vector of length equal to 168.
How could I do this?