s-news
[Top] [All Lists]

Re: SUMMARY: S-PLUS top tips

To: s-news@wubios.wustl.edu
Subject: Re: SUMMARY: S-PLUS top tips
From: "Henrik Aalborg Nielsen" <immhan@student.dtu.dk>
Date: Thu, 26 Jul 2001 09:34:16 +0200 (METDST)
In-reply-to: <E09E527B56BE2D438A3D6A246DDD27A99DCB@Roper-CV.qld.cmis.csiro.au>
I'd say that the problem with functions c, q, s, t, C, D, and I is not
that big at all:  If you make a non-function object with one of these
names the only thing that does not work is that the function is not
printed when it's name is typed at the prompth.  If you make a function
which is allready there you get a warning... Or am I missing something
here?

Example:

> version
Version 6.0 Release 1 for Sun SPARC, SunOS 5.6 : 2000 
> c <- rnorm(1)
> c(c, 3)
[1] 0.008629243 3.000000000
> # OK
> c <- function(x) sum(x)/length(x)
Warning messages:
  Conflicting definitions of "c" on databases "/home2/han/MySwork" and
"splus"
> c(rnorm(100))
[1] 0.09876186
> remove("c")

/Henrik

--------------------------------------------------------------------------
   Henrik Aalborg Nielsen                  
   Informatics and Mathematical Modelling
   Section for Statistics, Time Series Group
   Technical University of Denmark
   Richard Petersens Plads, Build.321,
   DK-2800 Kgs. Lyngby, Denmark.
   Phone:  +45 4525 3418
   Fax.:   +45 4588 2673
   E-mail: han@imm.dtu.dk
   URL:    http://www.imm.dtu.dk/~han
--------------------------------------------------------------------------



<Prev in Thread] Current Thread [Next in Thread>