[R] help regarding converting the available date in "right" date

2009-04-02 Thread Suresh_FSFM
Dear R users, I have a table with say three columns and 70 rows. The second column has dates in format dd.mm.yy (i.e. 01.10.07 indicating record for October 1, 2007). I read the text file, containing the records. Now, I want to find out the weekday for each date. However, I cannot do so. 1)

[R] Problem with Dates :-(

2009-04-02 Thread Suresh_FSFM
Dear R users, I know, the question is bit old one. :-( Ok. I have a table with say three columns and 70 rows. The second column has dates in format dd.mm.yy (i.e. 01.10.07 indicating record for October 1, 2007). I read the text file, containing the records. Now, I want to find out the weekday fo

[R] Ingore this message. I have already solved the problem..

2009-02-17 Thread Suresh_FSFM
Ingore this message. I have already solved the problem.. Regards, Suresh Suresh_FSFM wrote: > > Dear R-experts, > > Need your help. > > Dear R- Experts, > > Seek your help. > > I created a time sequence using: > x[i] <-chron(dates, tt, format=c(

[R] difficulty in starting time sequence from 00:00:00

2009-02-17 Thread Suresh_FSFM
Dear R-experts, Need your help. Dear R- Experts, Seek your help. I created a time sequence using: x[i] <-chron(dates, tt, format=c(dates="y-m-d", tt="h:m:s")) first element in the list is displayed as: (09-01-01 00:00:00) Further elements are: (09-01-01 00:01:00) (09-01-01 00:02:00) (09-0

[R] problem of "local" ! :-(

2009-02-16 Thread Suresh_FSFM
Dear R- Experts, Seek your help. I created a time sequence using: x[i] <-chron(dates, tt, format=c(dates="y-m-d", tt="h:m:s")) first element in the list is displayed as: (09-01-01 00:00:00) Now, I want to store this value as date. If I use: format.Date(x[1],"%y-%m-%d %H:%M:%S"), I expect follo

Re: [R] is there any way to find match with tolerance

2009-02-16 Thread Suresh_FSFM
Thank you for the positve response. Gabor Grothendieck wrote: > > ?all.equal has a tolerance argument. > > On Mon, Feb 16, 2009 at 8:41 AM, Suresh_FSFM > wrote: >> >> Hello all, >> >> suppose I have a time-stamp: "16-02-2009 00:20:00"

[R] is there any way to find match with tolerance

2009-02-16 Thread Suresh_FSFM
Hello all, suppose I have a time-stamp: "16-02-2009 00:20:00" and other array that stores lot of time values. My tolerance limit = +5 minutes I would like to find values from this array matching with the value: "16-02-2009 00:20:00" + tolerance Before I write some function, I would like to know:

Re: [R] How to create sequence of constant time interval

2009-02-16 Thread Suresh_FSFM
Thank you very much for the precise response. Regards, Suresh Suresh_FSFM wrote: > > Dear R-Experts, > > seek your help. > > There are two parts I want to deal with. > 1) > I want to create a time interval of say, 30 minutes starting from > "00:00:00&q

[R] How to create sequence of constant time interval

2009-02-16 Thread Suresh_FSFM
Dear R-Experts, seek your help. There are two parts I want to deal with. 1) I want to create a time interval of say, 30 minutes starting from "00:00:00" hrs Thus at the end, I want to create sequence: 00:00:00 00:30:00 01:00:00 01:30:00 .. .. How to do so ? Later, I want to change the time-in

Re: [R] Tip for performance improvement while handling huge data?

2009-02-08 Thread Suresh_FSFM
Ok. Thank you. As of now, vectorization option is feasible. Was not sure to handle this way. would try. Regards, Suresh Philipp Pagel-5 wrote: > >> For certain calculations, I have to handle a dataframe with say 10 >> million >> rows and multiple columns of different datatypes. >> When I try

Re: [R] How to print console output statements from within script or function?

2009-02-08 Thread Suresh_FSFM
Yes. I am running R on windows. However, I did not understand your question "Is our output buffered?" No. I did not use flush.console function. Suppose I am handling dataframe with 10 million rows, and performing some calculations using "For loop" from row 1 to end, then where should I use this

[R] Tip for performance improvement while handling huge data?

2009-02-08 Thread Suresh_FSFM
Hello All, For certain calculations, I have to handle a dataframe with say 10 million rows and multiple columns of different datatypes. When I try to perform calculations on certain elements in each row, the program just goes in "busy" mode for really long time. To avoid this "busy" mode, I spli

[R] How to print console output statements from within script or function?

2009-02-08 Thread Suresh_FSFM
Dear R-Experts, Seek your help. I am calling say 20 functions one by one in one script. To reach the end, it takes approximately one hour. While R is performing calculations, I would like to print console output statements to track the progress.(e.g. "Result of function-1 is done") Note: I have

Re: [R] help regarding storing time difference values in same unit?

2009-02-05 Thread Suresh_FSFM
ot;2009-03-04 13:00:00 GMT" >> difftime(x[2], x[1]) > Time difference of 62.125 days > >> difftime(x[2], x[1], units='secs') > Time difference of 5367600 secs >> > > > On Thu, Feb 5, 2009 at 4:40 AM, Suresh_FSFM > wrote: >> >> Dear R

[R] help regarding storing time difference values in same unit?

2009-02-05 Thread Suresh_FSFM
Dear R-Experts, Seek your help. In a List object e.g. Time_duration[[]], I am storing differece between two time-stamps (start-time and end-time) for a certain event. Time difference does not remain constant for, say, 10 observations. Each time, the time difference is given in different time u

Re: [R] data editor in R- could it be improved?

2009-02-04 Thread Suresh_FSFM
Hi ! I am using "Tinn R" data editor. This is wonderful and also thin one. Try this. I guess, yu will find what you are looking for. Regards, Suresh Simon Pickett-4 wrote: > > Hi all, > > I've used R for basic programming and data management for a few years now. > One of the things that I

Re: [R] How to declare an array with columns storing different datatypes/precision

2009-02-04 Thread Suresh_FSFM
h Duncan Murdoch-2 wrote: > > On 2/4/2009 8:57 AM, Suresh_FSFM wrote: >> Dear R- Experts, >> Seek your help. >> >> I want to creata data as follows. >> Ref_array with 4 columns. >> 1st column should store data of precision: 8.4 (i.e. 8 digits before

[R] How to declare an array with columns storing different datatypes/precision

2009-02-04 Thread Suresh_FSFM
Dear R- Experts, Seek your help. I want to creata data as follows. Ref_array with 4 columns. 1st column should store data of precision: 8.4 (i.e. 8 digits before decimal point and 4 digits after decimal points) 2nd column: should store data of type date "-mm-dd hh:mm:ss" 3rd column: only inte

Re: [R] How to subtract 2 days from a variable storing particular date

2009-02-03 Thread Suresh_FSFM
Great ! Thanks a lot for prompt and positive response. Best Regards, Suresh Gabor Grothendieck wrote: > > Try this: > > now <- Sys.time() > seq(now, length = 2, by = "-2 days")[2] > > and see R News 4/1 for more on dates. > > > On Tue, F

[R] How to subtract 2 days from a variable storing particular date

2009-02-03 Thread Suresh_FSFM
Dear R- Exerts, Seek your help. Suppose I have a variable "X" that stores a date: "2008-12-15 CET" Now, I want to subtract 2 days (better two working days) from value stored in "X". Please let me know how to do so. Another variable "Y" stores timestamp as: 2008-11-28 00:09:00 I want to subtract

Re: [R] How to collect arrays in an array?

2009-01-30 Thread Suresh_FSFM
not data. > ~ Roger Brinner > > The combination of some data and an aching desire for an answer does not > ensure that a reasonable answer can be extracted from a given body of > data. > ~ John Tukey > > -Oorspronkelijk bericht- > Van: r-help-boun...@r-project.o

Re: [R] How to collect arrays in an array?

2009-01-30 Thread Suresh_FSFM
stephen sefick wrote: > > why not a list? > > On Fri, Jan 30, 2009 at 10:10 AM, Suresh_FSFM > wrote: >> >> Dear R-Experts, >> >> Seek your help. >> Please let me know how arrays of different sizes can be collected in one >> array. >> sup

[R] How to collect arrays in an array?

2009-01-30 Thread Suresh_FSFM
Dear R-Experts, Seek your help. Please let me know how arrays of different sizes can be collected in one array. suppose I want to collect following arrays in one array. How can I do so? array(1): #row=3, #col=4(these columns store data of different types) array(2): #row=6, #col=4 array(3): #row