similar to: Use of example()

Displaying 20 results from an estimated 11000 matches similar to: "Use of example()"

2000 May 12
2
Documentation of par(gamma) (PR#540)
The on-line documentation for par() refers to a 'gamma' argument. However, if 'par()' is invoked, there is no gamma argument. -- Art Salwin salwin@mitretek.org (202) 863-2985 (202) 863-2988 (fax) --please do not edit the information below-- Version: platform = Windows arch = x86 os = Win32 system = x86, Win32 status = major = 1 minor = 0.0 year = 2000 month = February
2000 May 12
2
Documentation of par(ann) (PR#539)
The on-line documentation for the 'ann' argument under par(), states "If set to 'FALSE'...". However, this parameter shows up as a numeric on my machine, not as a logical. -- Art Salwin salwin@mitretek.org (202) 863-2985 (202) 863-2988 (fax) --please do not edit the information below-- Version: platform = Windows arch = x86 os = Win32 system = x86, Win32
2000 May 12
1
Typo in documentation for order() (PR#541)
The documentation for 'order()' has the following sentence: `sort.list' is the same, using only one argument put allowing partial sorting. Should "put" be "but" or possibly "'partial'"? -- Art Salwin salwin@mitretek.org (202) 863-2985 (202) 863-2988 (fax) --please do not edit the information below-- Version: platform = Windows arch =
2000 Mar 30
1
How do you go beyond tapply()?
"An Introduction to R" notes that the function tapply() can be used to index a vector by multiple categories. But they don't show how to do this. How does one implement, for example, the example in the text in which tax accountants are indexed by both state and sex? Is there a way to use tapply() to put the vector into bins defined by the levels instead of having to exactly match
2000 Apr 24
1
Comments on Win95 R Distribution (PR#527)
Here are some comments generated by a new R user based on initial experiences with the tool. On-line help for tapply: The following appears "for to each (non-empty) group of values" It seems there's an extra preposition in this sentence. On-line help for cut: "break" should be "breaks" morley.data not available with the distribution. Would be helpful for
2000 Oct 17
2
Percentile function
Is there an R function that inputs a value and a vector, and returns the percentile corresponding to the value? Something like pvalue<-function(x,vector){mean(x>=vector)} but with interpolation. Given the above function, is there a way to do the following without the loop: for(i in 1:10) y[i] <- pvalue(x[i],vector) where x and y are numeric vectors of length 10? -- Art Salwin
1999 Mar 30
0
Example(persp) fails in 0.63.4 and 0.64 (PR#152)
>From 0.63.4 or 0.64: > example(persp) persp> x <- seq(-10, 10, length = 50) persp> y <- x persp> f <- function(x, y) { r <- sqrt(x^2 + y^2) 10 * sin(r)/r } persp> z <- outer(x, y, f) persp> z[is.na(z)] <- 1 persp> par(bg = "white") persp> persp(x, y, z, theta = 30, phi = 30, expand = 0.5, col = "lightblue")
2002 May 20
0
Use of 'any' in 3.2.1 if ... else example is incorrect (PR#1576)
On Mon, 20 May 2002 dciemo@excite.com wrote: > Full_Name: David Ciemiewicz > Version: 1.3.1 > OS: Windows 2000 > Submission from: (NULL) (63.192.218.208) > > > In the R Language Manual (R-lang.pdf), section 3.2.1 "if", there is an example > expression which uses the function "any". > > > if( any(x) <= 0 ) y <- log(1+x) else y <- log(x)
2001 Jan 11
2
problem with strptime example (PR#811)
On Thu, 11 Jan 2001 stephen@anc.ed.ac.uk wrote: > Hi, > > The help file for strptime has the following code which doesn't work > for me: > > ## read in date info in format `ddmmmyyyy' > x <- c("1jan1960", "2jan1960", "31mar1960", "30jul1960") > z <- strptime(x, "%d%b%Y") > > z > [1]
2002 Jun 19
0
[R] Problems with url/download and http_proxy
This does seem to fix my problem: > Sys.getenv("http_proxy") http_proxy "http://gproxy1.pfizer.com/" > url("http://cran.r-project.org/src/contrib/PACKAGES",'r') description "http://cran.r-project.org/src/contrib/PACKAGES" class
2000 Aug 28
0
under certain conditions, model.matrix appears to lack one (PR#648)
On Mon, 28 Aug 2000, Rashid Nassar wrote: > Dear Professor Ripley, > > Thank you very much for your kind explanation. If I may lamely say > something in my defence, even as I apologize for my error: I mistook the > sentence "the (quoted) name of a function" to mean "optionally quoted" > because of the parentheses surrounding "quoted", and was
2002 Aug 06
0
pipe and binary i/o (on Linux)
Thanks very much, Professor Ripley. Reid Huntsinger -----Original Message----- From: ripley at stats.ox.ac.uk [mailto:ripley at stats.ox.ac.uk] Sent: Tuesday, August 06, 2002 3:00 AM To: Huntsinger, Reid Cc: r-help at stat.math.ethz.ch Subject: Re: [R] pipe and binary i/o (on Linux) On Mon, 5 Aug 2002 ripley at stats.ox.ac.uk wrote: > pipe predates readBin, and no one has seen a
2001 Aug 21
0
Re: [R] Problem using GLM in a loop (fwd)
This example is caused by R's messing with formula environments. That's explained in ?formula, but should it not be explained in ?model.frame ? Simple test: data <- data.frame(y=rnorm(100), x=1:100) testit <- function(formula) { weights <- runif(100) glm(formula, weights=weights, data=data) } testit(y ~ x) weights is looked for in the environment of the formula, not of
2002 Jun 19
0
FW: [R] Problems with url/download and http_proxy (PR#1689)
For the record. -----Original Message----- From: ripley@stats.ox.ac.uk [mailto:ripley@stats.ox.ac.uk] Sent: Tuesday, June 18, 2002 3:21 PM To: Warnes, Gregory R Cc: 'r-help@stat.math.ethz.ch' Subject: RE: [R] Problems with url/download and http_proxy The port is not supposed to be required, so rather than fix the docs can anyone fix the problem? On Tue, 18 Jun 2002, Warnes, Gregory R
2002 Oct 11
4
read.table( ... comment.char="#") truncated my data
Dear all, I found that the new feature of the comment.char="#" argument in the read.table function truncated my data while the data set actually contains '#'. We analyze lot of data that contain '#'. This is really annoying and it is also not compatible earlier version of R. I searched the R archive and found the following message for the scan function. Is it
2002 Aug 14
1
FW: R CMD check: Too long [R] code line generated (PR#1900)
On Wed, 14 Aug 2002, Henrik Bengtsson wrote: > Sorry, but it was indeed the redirection of the standard output in > Cygwin/bash that cause the first problem, not R (I should stop doing > troubleshooting at 1:00 AM). So please forget about the problems reported in > R_CMD_check.out. However, it would still be nice if you still update R CMD > check to do join with "\n".
2000 Oct 11
0
Balanced incomplete block analysis
At 07:12 AM 10-10-00 +0100, Prof Brian D Ripley wrote: >On Tue, 10 Oct 2000, Murray Jorgensen wrote: > >> Excuse me everyone, but I don't have to teach this very often! >> >> Has anyone got some R code for doing adjusted treatment means and the >> recovery of inter-block information in the analysis of balanced incomplete >> block designs? > >Do you
2000 Sep 28
0
Occams Razor Was: lm -- significance of x ...
> From: Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> > Date: 28 Sep 2000 13:58:22 +0200 > > Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> writes: > > > I think Occam/Ockham himself wrote in Latin. By my failing memory, the > > quote is > > > > "Entia non runt multiplicanda praeter necessitam" > > > > give or take
2000 Mar 08
0
RE: [R] RODBC
Sorry, I was commenting on the previous windows version (version file says 0.5a) (the first one which ran under RW.1.0.0) I have Win NT 4.0 Service pack 5 and R is > version _ platform Windows arch x86 os Win32 system x86, Win32 status major 1 minor 0.0 year 2000 month February day 29 language R > -----Original Message----- > From: Prof Brian
2006 Jun 24
0
Documentation detail [was: Merging factor levels.]
Hi to R developers. In the "Details:" section of "?levels", it would be nice including the following sentence, taken from a reply from Brian Ripley: If you set two levels to be the same label, they get merged. Granted, the "Examples:" section does have a terse comment and examples from which users may imply this behaviour. Yet, the documentation would be