[R] Col Names
jim holtman
jholtman at gmail.com
Wed Apr 8 18:12:58 CEST 2009
Is this what you are looking for:
> x
Positions DEV.MSCI
04/30/1980 00:00:00.000 -0.0150328542
05/31/1980 00:00:00.000 0.0005087752
06/30/1980 00:00:00.000 0.0586794492
07/31/1980 00:00:00.000 0.0458505592
08/31/1980 00:00:00.000 0.0350926728
> colnames(x)[2] <- "NewName"
> x
Positions NewName
04/30/1980 00:00:00.000 -0.0150328542
05/31/1980 00:00:00.000 0.0005087752
06/30/1980 00:00:00.000 0.0586794492
07/31/1980 00:00:00.000 0.0458505592
08/31/1980 00:00:00.000 0.0350926728
On Wed, Apr 8, 2009 at 10:45 AM, livia <yn19832 at msn.com> wrote:
>
> Hello,
>
> I am working with S-plus TimeSeries Object. I wonder how can I change the
> column names of the variable instead of using the one default?
>
> i.e to change "DEV.MSCI" to other name
> Positions DEV.MSCI
> 04/30/1980 00:00:00.000 -0.0150328542
> 05/31/1980 00:00:00.000 0.0005087752
> 06/30/1980 00:00:00.000 0.0586794492
> 07/31/1980 00:00:00.000 0.0458505592
> 08/31/1980 00:00:00.000 0.0350926728
>
> --
> View this message in context: http://www.nabble.com/Col-Names-tp22952055p22952055.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem that you are trying to solve?
More information about the R-help
mailing list