Re: [Rd] ifelse

2008-08-18 Thread Peter Dalgaard
Prof Brian Ripley wrote: Another way of looking at this is that ifelse(TRUE, character(0), "") asks for a length-one result Just to rub it in: The length of an ifelse() computation is the length of the "test" argument, so there is no way you should expect character(0) as the result. (The clas

Re: [Rd] ifelse

2008-08-18 Thread Prof Brian Ripley
Another way of looking at this is that ifelse(TRUE, character(0), "") asks for a length-one result containing the first element of yes=character(0), and character(0)[1] is NA_character_ I suspect if(TRUE) character(0) else "" was intended. On Mon, 18 Aug 2008, Marc Schwartz wrote: on 08/18/2

Re: [Rd] ifelse

2008-08-18 Thread Marc Schwartz
on 08/18/2008 06:35 PM Heikki Kaskelma wrote: > I find it slightly surprising, that > > ifelse(TRUE, character(0), "") > > returns NA instead of character(0). > > [WNT 2.6.2 Patched] Time to upgrade... :-) The same behavior is in: R version 2.7.2 beta (2008-08-16 r46368) The reason for

[Rd] ifelse

2008-08-18 Thread Heikki Kaskelma
I find it slightly surprising, that ifelse(TRUE, character(0), "") returns NA instead of character(0). [WNT 2.6.2 Patched] -- Heikki Kaskelma __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] 'javareconf -e' as normal user (PR#12544)

2008-08-18 Thread Rune Schjellerup Philosof
Simon Urbanek skrev: Rune, On Aug 15, 2008, at 8:50 AM, [EMAIL PROTECTED] wrote: Full_Name: Rune Philosof Version: 2.6.2 and 2.7.1 OS: Ubuntu 8.04 Submission from: (NULL) (130.226.87.177) When I try to install rJava I am requested to run 'R CMD javareconf -e' if I don't have root access.

Re: [Rd] format Date

2008-08-18 Thread Prof Brian Ripley
On Sun, 17 Aug 2008, sayeed hussain wrote: Hey people.. Wrong 'people': this is a question for R-help, and please study the R posting guide. I have been trying this code write.table(data.frame(date,name,amount,details),file="C:/Documents and Settings/Administrator/My Documents/Account/Acc

Re: [Rd] Allocated Memory Warnings in Vista 32 bit with 4 GB (PR#12557)

2008-08-18 Thread Prof Brian Ripley
I see no bug here. R is telling you that you have insufficient memory available: see also ?"Memory-limits". See also rw-FAQ Q2.9. Note that we don't have a reproducible example and in particular have no idea of how many columns this data frame has. The 'R Data Import/Export' manual gives yo

Re: [Rd] Allocated Memory Warnings in Vista 32 bit with 4 GB (PR#12560)

2008-08-18 Thread ripley
I see no bug here. R is telling you that you have insufficient memory available: see also ?"Memory-limits". See also rw-FAQ Q2.9. Note that we don't have a reproducible example and in particular have no idea of how many columns this data frame has. The 'R Data Import/Export' manual gives you

[Rd] format Date

2008-08-18 Thread sayeed hussain
Hey people.. I have been trying this code write.table(data.frame(date,name,amount,details),file="C:/Documents and Settings/Administrator/My Documents/Account/Account Info.txt",quote=FALSE,append=TRUE,col.names=FALSE,row.names=FALSE,sep="\t") check<-read.table("C:/Documents and Settings/Administra

[Rd] Allocated Memory Warnings in Vista 32 bit with 4 GB (PR#12557)

2008-08-18 Thread drmark
Hello I am running Windows Vista 32 with 4 GB (installed, though Windows of cours= e only recognizes 3326 MB, as reported by Windows "My Computer") I am running R 2.7.1 I was trying to read in a comma delimited single column CSV file, assign th= at file to a variable ("data") and then extract a