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

2009-11-19 Thread David Winsemius
On Nov 18, 2009, at 11:00 PM, ychu066 wrote: hey Jim , I have solve the column name problems now. But i am still unable to read the date in R ... toms_dat<- replace(toms_dat, toms_dat ==2009-08-24, 6) replace needs its first argument to be a vector, while you have given it a datafram

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

2009-11-18 Thread ychu066
hey Jim , I have solve the column name problems now. But i am still unable to read the date in R ... toms_dat<- replace(toms_dat, toms_dat ==2009-08-24, 6) the toms_dat is a data frame , and I want to replace the date to be a single number eg:1,2,3, regards, Tom. jholtman wrote: >

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

2009-11-18 Thread ychu066
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

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

2009-11-18 Thread jim holtman
?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

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

2009-11-17 Thread ychu066
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 u

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

2009-11-17 Thread ychu066
moreover, how come when I export a dataframe out from R say, it become a excel file. The first column includes the inex number eg: 1,2,3 ..n instead of including the values that the first column should be have anyone know how to solve this problem ? ychu066 wrote: > > hi everyone, i

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

2009-11-17 Thread jim holtman
First of all '2009-08-06' is 1995; this is probably not what you were expecting. What do you what your expression to do? Is 'toms_dat' a dataframe? if so, your expression 'toms_dat ==2009-08-06' seem strange. So tell us what you want to do, not how you want to do it. On Tue, Nov 17, 2009 at 4:

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

2009-11-17 Thread ychu066
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 exce