[R] re placing the dates format in R for exporting the data set...

ychu066 ychu066 at aucklanduni.ac.nz
Thu Nov 19 00:57:58 CET 2009



Ok thanks 



jholtman wrote:
> 
> ?write.table
> 
> If you read the help file, and do a little experimenting, you will see
> that there is a parameter 'rownames=FALSE' that may answer your
> question.
> 
> Also since you did not have column names on your input, you get V1,
> V2,...  You can put your own column names.  It helps again to read the
> help file on 'read.table' and look at the parameter 'col.names'.
> There is also the colnames function.  It also might help to (re)read
> the Intro to R.
> 
> On Tue, Nov 17, 2009 at 8:27 PM, ychu066 <ychu066 at aucklanduni.ac.nz>
> wrote:
>>
>> Moreover,  I want to rename the column name V1,V2,V3,V4.....V146.  how do
>> i
>> write the code in R ???
>>
>> thanks everyone that look at the thread/
>>
>>
>>
>> ychu066 wrote:
>>>
>>> hi everyone, i am having difficulties with replacing the dates format in
>>> R
>>> for exporting the data set...
>>>
>>> eg: the code that i used was
>>> toms_dat<- replace(toms_dat, toms_dat ==2009-08-06, 2)
>>> toms_dat<- replace(toms_dat, toms_dat ==2009-08-04, 1)
>>>
>>> but when i export the data as into txt file or excel file the dates come
>>> up with very large numbers .....:drunk:
>>>
>>> please help me ...=)
>>>
>> http://old.nabble.com/file/p26400792/what.csv what.csv
>> --
>> View this message in context:
>> http://old.nabble.com/replacing-the-dates-format-in-R-for-exporting-the-data-set...-tp26396492p26400792.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?
> 
> ______________________________________________
> 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.
> 
> 

-- 
View this message in context: http://old.nabble.com/replacing-the-dates-format-in-R-for-exporting-the-data-set...-tp26396492p26418090.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list