Re: [R] Equivalent of Nothing (in VBA) or [] in Matlab in R

2012-05-01 Thread ruipbarradas
16:52:45 -0700 > > From: ruipbarra...@sapo.pt > > To: r-help@r-project.org > > Subject: Re: [R] Equivalent of Nothing (in VBA) or [] in Matlab in R > > > > Hello, > > > > There are other types of "empty" objects in

Re: [R] Equivalent of Nothing (in VBA) or [] in Matlab in R

2012-04-29 Thread Rui Barradas
Hello, There are other types of "empty" objects in R (zero length or dimension). Maybe some of these x <- list() length(x) x <- matrix(list()) dim(x) <- c(0, 0) x Matlab's [] is the empty matrix so maybe the second works. Other possibilities could be x <- numeric(0) (or integer(0) or character(

Re: [R] Equivalent of Nothing (in VBA) or [] in Matlab in R

2012-04-29 Thread lm
Thanks Michael. I tried with NULL - It throws Type mismatch error and same error while passing c() or defining a<- c() and then passing a as parameter Also tried with not passing any parameter, then it says 'Parameter not optional'. I am afarid no joy. Thanks Regards,lmDate: Sun, 29 Apr 2012

Re: [R] Equivalent of Nothing (in VBA) or [] in Matlab in R

2012-04-29 Thread R. Michael Weylandt
Perhaps NULL? Or maybe a vector of length 0you can also just leave arguments missing in R thanks to lazy evaluation so there's not a single equivalent to "nothing" Hth, Michael On Apr 28, 2012, at 6:04 PM, lm wrote: > Hi, I am very new to R so please excuse me if I am asking very obvious

[R] Equivalent of Nothing (in VBA) or [] in Matlab in R

2012-04-28 Thread lm
Hi, I am very new to R so please excuse me if I am asking very obvious questions. I am trying to call a blackbox api function implemented in as a COM object from R. The function definition says that 1. if calling from VBA, the first parameter should be set to "Nothing" 2. if calling from matlab,