Re: [R] R crashes

2009-10-30 Thread premmad
Windows XP 32 bit machine. allocated 2gb as memory for R 2.9.2 data will be 20mb and was running calculations on the data . but the r crashes with out any warning or so. -- View this message in context: http://old.nabble.com/R-crashes-tp26110355p26124740.html Sent from the R help mailing list a

[R] R crashes

2009-10-29 Thread premmad
My R crashes frequently when run with huge data. -- View this message in context: http://www.nabble.com/R-crashes-tp26110355p26110355.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz

[R] Vector Allocation -problem

2009-10-12 Thread premmad
When i tried running Zip<-sqldf("select a.*,b.s_lv from Zip a inner join lin b on a.S=B.S") Error: cannot allocate vector of size 15.6 Mb and with following warning Warning messages: 1: In as.list.data.frame(X) : Reached total allocation of 1024Mb: see help(memory.size) 2: In as.list.data.frame

Re: [R] Handling missing data

2009-10-09 Thread premmad
I have one column x 97 94 91 90 NA NA NA NA I tried book$r<-ifelse(book$x!=NA,book$x+20,10) I expect to get the result as follows 107 104 91 90 10 10 10 10 But what i was getting is empty column of variable r.How to solve this -- View this message in context: http://www.nabble.com/Handlin

Re: [R] Nested select

2009-09-26 Thread premmad
Thanks.It works -- View this message in context: http://www.nabble.com/Nested-select-tp25608506p25622242.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PL

[R] Nested select

2009-09-25 Thread premmad
my data : library(doBy) lines<-"lo ptcl5 ptcl99 variable 430. 8787a 430 3422343 m 430. 89mr 4314564774a 431 299 2777m 4319996 mr 432

Re: [R] use of class variable in r as in Proc means of sas

2009-09-23 Thread premmad
Ya it works thanks for the help -- View this message in context: http://www.nabble.com/use-of-class-variable-in-r-as-in-Proc-means-of-sas-tp25530654p25531102.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing

Re: [R] use of class variable in r as in Proc means of sas

2009-09-23 Thread premmad
I tried thanks for your help and got the same result for percentile 5 & 95 as in SAS.But if i need to calculate quantiles (1,5,10,99,etc.) it will not be possible with fivenum as explained in the help page .If i need those quantiles what is the change i need to make in the function qfu<-function(

Re: [R] use of class variable in r as in Proc means of sas

2009-09-23 Thread premmad
Thanks for the help.I got the required quantiles by altering ur code as follows qfu<-function(x,digits=3,sci=F,...) {c(q=quantile(x,probs=c(5,90)/100)) } and my result of the R system is different from my sas system output for the same function .could anyone help me in this and what is the rea

[R] use of class variable in r as in Proc means of sas

2009-09-22 Thread premmad
Hi,everyone i need to calculate quartile values of a variable grouped by the other variable . same as in aggregate function(only median,mean or functions is possible-i think so) Could you please help me to achieve the same for other quartile values(5,10,25,75,90) as for median using aggregate. Th

Re: [R] Datetime conversion

2009-09-20 Thread premmad
Thanks to everyone for helping me overcome the problem faced .I have got over with the problem .once again thanks for the immediate response of all the members -- View this message in context: http://www.nabble.com/Datetime-conversion-tp25503138p25530176.html Sent from the R help mailing list a

[R] Handling missing data

2009-09-20 Thread premmad
I have to remove missing data both in character and numeric datatype.I tried using NA condition but it is not working ,please help me to solve this. -- View this message in context: http://www.nabble.com/Handling-missing-data-tp25530192p25530192.html Sent from the R help mailing list archive at

[R] Selecting data based on date-Data manupulation

2009-09-20 Thread premmad
I have 70 columns and more than 400k rows .In the data date column will have values from 1900(01/01/1900) .How do i select only the data of recent two years?Help me in this regard -- View this message in context: http://www.nabble.com/Selecting-data-based-on-date-Data-manupulation-tp25530189p255

Re: [R] Maximum No.of code in R

2009-09-18 Thread premmad
Thanks for the reply and it is useful.What i want to know here is i'm going to try and write an automated procedure using batch processing in R by the way input of the next step is going to be this steps output .so one will not able to predict the lines please also do answer in taking consideratio

Re: [R] Datetime conversion

2009-09-18 Thread premmad
Sorry for confusing you all with my inexperienced posting . I tried as u said if you have 9 rows in the data it is working fine but please try out the same example as you have suggested earlier with morethan 9 rows. I tried it as following datetime <-c( + "01OCT1987:00:00:00.000", + "12APR2004:0

Re: [R] Datetime conversion

2009-09-18 Thread premmad
Thanks .I tried its working but when i tried to view the dataframe i got the following error Error in edit.data.frame(get(subx, envir = parent), title = subx, ...) : can only handle vector and factor elements -- View this message in context: http://www.nabble.com/Datetime-conversion-tp25503

Re: [R] Datetime conversion

2009-09-18 Thread premmad
The same what you have worked out is my need but i'm getting the following error Error in `$<-.data.frame`(`*tmp*`, "date", value = list(sec = c(0, 0, : replacement has 9 rows, data has 14 Please help me in this -- View this message in context: http://www.nabble.com/Datetime-conversion-tp2

Re: [R] Datetime conversion

2009-09-18 Thread premmad
It works but what i need is the result also as a column . I tried using the following code . dt$new<-strptime(as.character(dt$datetime),"%d%b%Y. It shows the following error Error in `$<-.data.frame`(`*tmp*`, "Sa_dt", value = list(sec = c(0, 0, : replacement has 9 rows, data has 14. Please h

[R] Maximum No.of code in R

2009-09-18 Thread premmad
I tried running 50 lines of ifelse statement in R and the system says context stack overflow at 50 line.Is it the limitation of R or is there any way around that can be done to overcome this.Thanks -- View this message in context: http://www.nabble.com/Maximum-No.of-code-in-R-tp25506024p25506024

Re: [R] Datetime conversion

2009-09-18 Thread premmad
> >> date<-strptime(datetime,"%d%b%Y") >> date > [1] "1987-10-01" "2004-04-12" "1987-12-01" "1975-10-01" "1979-08-01" > "2003-06-26" > [7] "1900-01-01" "1998-05-13" "1998

Re: [R] Datetime conversion

2009-09-18 Thread premmad
Is there any other way to solve this, please do reply . David Winsemius wrote: > > > On Sep 18, 2009, at 1:03 AM, premmad wrote: > >> >> I'm relatively new to R .I tried converting the datetime column with >> values >> like 01apr1985:00:00:00.000 us

[R] Datetime conversion

2009-09-17 Thread premmad
I'm relatively new to R .I tried converting the datetime column with values like 01apr1985:00:00:00.000 using strptime(datetime,"%d%b%Y).Could anyone help me in this regard .Please reply ASAP i need . -- View this message in context: http://www.nabble.com/Datetime-conversion-tp25503138p25503138