It is quite unclear what you are importing from the CSV file. However it
seems your are unhappy with the dates that were first on the CSV.
Lets X be your imported data.frame from the CSV file and X[,1] be the
positions (dates)
If you want to have monthly positions without any gaps, I suggest you create
a timeSeries with data = X[,2:ncol(X)] and positions dreated with timeSeq().
If you want positions to be at the end of months, you just start on the
first of the next month and subsatrct 1. Ex: to obtain "01/31/2000"
"02/28/2000",... you just type :
timeSeq(from="2/1/2000",by="months",length.out=...)-1
Once you have a proper timeSeries, you can change the column names by using
colIds(X)<-c("name1","name2",...)
Bernardo Ribeiro wrote:
>
> Dear users,
>
> I have a trivial doubt here.
> I imported a csv file using a script and had to discard some columns and
> rows.
>
> How can I change that into a monthly timeSeries and change the name of
> the columns.
>
> best regards,
>
> Bernardo
> --------------------------------------------------------------------
> This message was distributed by s-news@lists.biostat.wustl.edu. To
> unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
> the BODY of the message: unsubscribe s-news
>
>
--
View this message in context:
http://www.nabble.com/timeSeries-question-tp16320179p16325028.html
Sent from the S-News mailing list archive at Nabble.com.
|