I know how to do this when creating the time series variable in one expression,
e.g.
valuesTS1<-ts(values,start=2000); # Frequency naturally defaults to 1
How can I specify the frequency of a time series?
> values=c(12,34,65,12);
> values<-ts(values);
> frequency(values);
[1] 1
> start(values)
[1] 1 1
> frequency(values)<-12;
Error in frequency(values) <- 12 : could not find function "frequency<-"
>
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.