Repeating Name for Rows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Repeating Name for Rows

ecvetano
Hello,
I have a large data frame (47:2186), where i want to label every 12th row.
This command works,
Day <-rep(97:278, each = 12)
However i need 97 to only labeled 11 rows and then from 98:278 can be  
labeled every 12 times.

Thanks!

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Repeating Name for Rows

Wu Gong
If I perceive the issue:

Day <- c(rep(97, each = 11), rep(98:278, each = 12))