Displaying 20 results from an estimated 10000 matches similar to: "R Report Generator: Submit to CRAN?"
2001 May 30
2
new book
Just thought I would mention that there is a new O'Reilly book out,
"Developing Bioinformatics Computer Skills", which is ok, pretty
superficial about some things but at least it lets you know what is
happening and where.
R gets a few pages in there, 394-396, mostly nice press and accurate
except that Bill Venables (hi Bill) may be surprised to find out that
he is a member of the
2001 Oct 02
1
problem with while loop with next (was RE: file connection, w hile, readLines and browser)
Dear R-help,
I think I have kinda isolated the problem I had to the following:
i <- 0
while( {i <- i + 1} < 5) {
if(i < 3) next
print(i)
}
This seems to go into an infinite loop. After I break the execution, i has
the value 1.
At the R prompt, if I start from i <- 0 and keep typing {i <- i + 1} < 5, it
eventually evaluate to TRUE. So why does the while loop not work?
1999 Nov 01
1
bug in sample (PR#305)
The following appears to be a bug in 0.90
> x<-sample(10,1:4,rep=T)
> x
[1] 8
> ?sample
> x<-sample(10,1:4,rep=T)
> x
[1] 5
Of course, I forgot the syntax but I still don't like the result.
--
+-------------------------------------------------------------------------+
| Robert Gentleman voice: (617) 632-5045 |
| Senior Lecturer
2001 Jan 10
2
nearest neighbors
Is there an implementation of a reasonable k-nearest neighbor finder
already in one of the packages?
--
+---------------------------------------------------------------------------+
| Robert Gentleman phone : (617) 632-5250 |
| Associate Professor fax: (617) 632-2444 |
| Department of Biostatistics office: not yet
2001 Oct 02
1
RE: problem with while loop with next
Prof. Tierney,
Thanks very much for the info.
Why does the loop work if I move the assignment out of the condition? E.g.,
the following works:
i <- 0
while(i < 5) {
i <- i + 1
if(i < 3) next
print(i)
}
Regards,
Andy
> -----Original Message-----
> From: Luke Tierney [mailto:luke at nokomis.stat.umn.edu]
> Sent: Tuesday, October 02, 2001 3:36 PM
> To: Liaw, Andy
2001 Jul 16
0
[R] RE: too many arguments in foreign function call
> From: Robert Gentleman [mailto:rgentlem@jimmy.harvard.edu]
>
> Greg,
> you might be better off writing a wrapper,
>
> R->foo where foo has less than 65 args and does nothing more than
> unpack them and calls bar (the original) with as many args as you
> want, not much code change and not much cost...
Hi Rob,
[BTW, sorry about the crosspost
2001 Oct 02
0
An example (was RE: file connection, while, readLines and bro wser)
Prof. Gentleman (and R-help),
Here's an example of what didn't work. I still don't understand why.
Function:
trycon <- function(file, n) {
f.con <- file(file, open="rt")
on.exit(close(f.con))
i <- 0
while( length(readln <- readLines(f.con, 1)) > 0 ) {
x <- unlist(strsplit(readln, " "))
if(length(x) <= 6 && x[3] ==
2002 Apr 29
1
Release of Design library; update of Hmisc library
The Design library has been fully ported to R except for Cox proportional hazards regression modeling (using Therneau's survival package) which will be available in about two weeks. It will take much longer to make all the example code executable, is it currently contains many examples for which data are not provided. Thanks to Xiao Gang Fan <xiao.gang.fan1 at libertysurf.fr> who
2002 Apr 29
1
Release of Design library; update of Hmisc library
The Design library has been fully ported to R except for Cox proportional hazards regression modeling (using Therneau's survival package) which will be available in about two weeks. It will take much longer to make all the example code executable, is it currently contains many examples for which data are not provided. Thanks to Xiao Gang Fan <xiao.gang.fan1 at libertysurf.fr> who
1999 Oct 20
0
[szimeras@irisa.fr: R installation problem]
----- Forwarded message from Stelios Zimeras <szimeras at irisa.fr> -----
Date: Wed, 20 Oct 1999 11:35:52 +0200
From: Stelios Zimeras <szimeras at irisa.fr>
Organization: IRISA, Campus de Beaulieu, 35042 Rennes Cedex, FRANCE
X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.5 sun4m)
X-Accept-Language: en
To: rgentlem at stat.auckland.ac.nz
Subject: R installation problem
Dear Sir,
I try
2001 Jan 17
4
Can one set --no-save in .Rprofile
(On Unix/Linux)
Is it possible to set the --no-save command line option as an option
in the .Rprofile file. I have looked in the sources and do not see
any obvious (user initiated) ways of changing the command line defaults,
but I am hoping I have missed something.
I *know* I can write my own shell script wrapper that calls R with
whatever arguments I want (and I do that). However there
1997 Apr 01
1
R-beta: Re: R-alpha: windows advice
Robert Gentleman <rgentlem at stat.auckland.ac.nz> writes:
> Help Files
> ==========
> Has anyone had any experience with latex2rtf and then on to windows help?
> We can hope that people have netscape and then simply use the html version
> but it would be nice if there were some easy way to produce real windows
> help.
Please keep the nroff versions and the old help()
2000 Dec 20
3
glm
It was my fault, as you have seen. Y matrix must contain successes and failures, and not successes and trials.
Sorry for my ignorance and thanks a lot for your help.
Oscar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20001220/341c2519/attachment.html
1997 May 25
1
R-alpha: cat
Kurt,
here's what S does (I recall going to some effort to duplicate the,
at times, seemingly unusual behaviour of cat)
S-PLUS : Copyright (c) 1988, 1996 MathSoft, Inc.
S : Copyright AT&T.
Version 3.4 Release 1 for Sun SPARC, SunOS 4.1.3_U1 : 1996
Working data will be in /users/rdev/rgentlem/.Data
> x <- factor(c(1:3, NA), exclude=numeric(0))
> x
[1] 1 2 3 NA
>
1999 Oct 31
1
diag
A change to diag() between 0.65.0 and 0.65.1 which seems undocumented in
the logs (apparently revision 1.3.2.1, `diag names') introduced
if (is.array(x))
stop("first argument is array, but not matrix.")
which has broken the code in rpart. This looks wrong to me, as diag used to
cope happily with a single-dimensional array. Such things occur quite
often as the output
1999 Oct 31
1
bugs in scan() (PR#304)
System: Sun Solaris 2.5.1
There seem to be at least 2 bugs associated with the use of flush=T in
the scan function.
1) If flush=T is used, scan() will only ask for 1 line from standard input.
Repeat by:
> R
R : Copyright 1999, The R Development Core Team
Version 0.65.1 Release (October 07, 1999)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it
2003 Mar 04
1
R version conflict.
My mistake :(
Seems that there's another R installed by root. So when I use .libPaths()
there're two of them:
> .libPaths()
[1] "/disk/hopper/projects/class/cse514/R/library"
[2] "/usr/lib/R/library"
How could the second path be enabled then? The R_LIBS have already been
set to as the [1] only.
Thanks,
yan
On Mon, 3 Mar 2003, Robert Gentleman wrote:
> You
2003 Mar 04
0
Finally get SJava work
Yeah!! I finally get SJava examples run on linux. The problems is that
there's an old version installed on the machine, with static library.
Unfortunately, the path of the old version is set before the new version,
thus every time when R command is conducted, the old version is invoked
(but I didn't know), and since the libR.so is not exist in that version, I
always got linkage errors :(
2002 Apr 04
3
assign, documentation (PR#1434)
Hi,
The help for `assign' says
In all the assignment operator expressions, `x' can be a name or
an expression defining a part of an object to be replaced (e.g.,
`z[[1]]'). The name does not need to be quoted, though it can be.
So I would expect that by
a<-1:4
assign("a[1]",2)
the first component of a gets the value 2, but the object "a[1]" is
1999 Aug 02
2
zero replacement
AARRGGHH! Sometimes it's the simple things that are particularly frustrating,
especially late at night....
Can anyone suggest a simple means for replacing all of the zero values in a
matrix with NANs? I ended up writing an awk script to massage the input file,
which works, of course, but is rather an inelegant blunt instrument. I'd
prefer an R operation. I'm certain that