Re: [R] Data handling

2013-10-16 Thread Raoni Rodrigues
Thanks A.K. and Jim! Thanks very much, both solution works fine! But I can´t figure out what was the problem with my code. Make step-by-step is not recommended? Is just that difference? Thanks again for help! Raoni 2013/10/15 arun > Try: > op <- options(digits.secs=4) > > TimeCC <- as.POS

Re: [R] Data handling

2013-10-15 Thread jim holtman
FYI. The fractional part is printed as '3204' instead of '3205' since with POSIXct you only have accuracy to the millisecond for times around now. Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Tue, Oct

Re: [R] Data handling

2013-10-15 Thread jim holtman
Try this; your time is converted back to a character string if you want to show the fractional part. > x <- read.table(text = "Date Time Fraction + 06/19/13 22:15:39 0.3205 + 06/19/13 22:15:44 0.3205 + 06/19/13 22:15:49 0.3205 + 06/19/13 22:15:54 0.3205 + 06/19/13 22:15:59 0

Re: [R] Data handling

2013-10-15 Thread arun
Try:  op <- options(digits.secs=4)   TimeCC <- as.POSIXct(paste0(paste(teste[,1],teste[,2]), sub("^0","",teste[,3])),format="%m/%d/%y %H:%M:%OS") options(op) #reset A.K. On Tuesday, October 15, 2013 10:29 AM, Raoni Rodrigues wrote: Hello all, I'm having a problem with data handling. My inpu

[R] Data handling

2013-10-15 Thread Raoni Rodrigues
Hello all, I'm having a problem with data handling. My input data is (dput in the after the signature): Date Time Fraction 06/19/13 22:15:39 0.3205 06/19/13 22:15:44 0.3205 06/19/13 22:15:49 0.3205 06/19/13 22:15:54 0.3205 06/19/13 22:15:59 0.3205 06/19/13 22:16:09 0.320

Re: [R] Data handling/optimum glm method.

2012-03-29 Thread Bert Gunter
Ben: On Thu, Mar 29, 2012 at 5:41 AM, Ben Bolker wrote: >   me.com> writes: > > >> I am trying to fit a generalised linear model to some loan >> application and default data. The purpose of this is to eventually >> work out the probability an applicant will default. > >> However, R seems to crash

Re: [R] Data handling/optimum glm method.

2012-03-29 Thread Ben Bolker
me.com> writes: > I am trying to fit a generalised linear model to some loan > application and default data. The purpose of this is to eventually > work out the probability an applicant will default. > However, R seems to crash or die when I run "glm" on anything > greater than a 5-way satur

[R] Data handling/optimum glm method.

2012-03-29 Thread abigailclifton
Hi there, I am trying to fit a generalised linear model to some loan application and default data. The purpose of this is to eventually work out the probability an applicant will default. However, R seems to crash or die when I run "glm" on anything greater than a 5-way saturated model for my

Re: [R] Data Handling

2010-08-02 Thread Lily_stats
Hi, I have managed to convert my data frames into xts such as : > str(z) An ‘xts’ object from 1983-01-03 19:00:00 to 2006-01-01 22:00:00 containing: Data: num [1:182959, 1:2] 12.6 11.3 12.7 12.8 10.9 ... - attr(*, "dimnames")=List of 2 ..$ : NULL ..$ : chr [1:2] "v" "DD" Indexed by

Re: [R] Data Handling

2010-07-30 Thread raghu
Please try: data <- xts(data[,2:n], order.by=as.POSIXct(strptime(data[,1], "%d/%m/%Y"))) Use similar strptime for hours also.n=number of columns. Good Luck Raghu On Fri, Jul 30, 2010 at 2:02 PM, Lily_stats [via R] < ml-node+2307936-1777222343-309...@n4.nabble.com > wrote: > Hi, > > I am tryin

Re: [R] Data Handling

2010-07-30 Thread raghu
Convert your datasets into xts objects and then do a cbind ordering by the column you want. Do a ?cbind. HTH Raghu On Fri, Jul 30, 2010 at 10:33 AM, Lily_stats [via R] < ml-node+2307770-1033893256-309...@n4.nabble.com > wrote: > Hi, > > I am very new to R so these questions may seem simple! > >

[R] Data Handling

2010-07-30 Thread Lily_stats
Hi, I am very new to R so these questions may seem simple! I have a huge 2 sets of data(matrix 5x2++) in the following formats , for example "data.txt" and "data2.txt": Date Time X Y 03/03/1983 20:00 0.1 990 I would like to recre

Re: [R] Data Handling

2010-07-30 Thread Gabor Grothendieck
On Fri, Jul 30, 2010 at 9:02 AM, Lily_stats wrote: > > Hi, > > I am trying to convert my dataset into xts. I have tried the following : > > data1<-read.table("data1.txt",header=F) > data2<-read.table("data2.txt",header=F) > > data1.xts > However, I get an error : > > Error in as.POSIXlt.character(

Re: [R] Data Handling

2010-07-30 Thread Lily_stats
Hi, I am trying to convert my dataset into xts. I have tried the following : data1<-read.table("data1.txt",header=F) data2<-read.table("data2.txt",header=F) data1.xtshttp://r.789695.n4.nabble.com/Data-Handling-tp2307770p2307936.html Sent from the R help mailing list archive at Nabble.com.