Dear Group,

Is there a more efficient way to create a data frame structure (using rep I
guess?)

require(plyr)

week <- rdply(10, data.frame(week = 1:52))
names(week) <- c("Year", "Week")
week$Year <- week$Year + 2000

Basically trying to create a year and week data frame to start appending
data to for a ggplot.

Many thanks.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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 via email to