[R] question from Braun/Murdoch book

Rolf Turner r.turner at auckland.ac.nz
Wed Oct 8 21:25:42 CEST 2008


On 8/10/2008, at 6:48 PM, Erin Hodgess wrote:

> Hi R People:
>
> I am looking at the Braun/Murdoch book, " A First Course in
> Statistical Programming in R", and I have a question about a function
> there.  It's on page 52, Example 4.5; the sieve of Erastosthenes.
>
> There is a line:
> primes <- c()
>
> Is there a difference between using that and
> primes <- NULL
> please?
>
> When you put in primes <- c(), primes comes back as NULL.
>
>
> Is one more efficient or is this just a matter of programming  
> style, please?

I think that using primes <- c() rather than primes <- NULL is a load
of dingos' kidneys. ;-) [Hi John!!!]

	cheers,

		Rolf

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}



More information about the R-help mailing list