Displaying 15 results from an estimated 15 matches for "a215020".
2001 Oct 03
8
Several R vs S-Plus issues
...gsub("x","X",s).
12) S function casefold() replaced in R by toupper() or tolower().
13) Functions missing from S: sub(), gsub(), chartr(), toupper(), tolower()
14) Log scale indicated in S with par(xaxt)=="l", in R with par("xlog")==T.
-- David Brahm (a215020 at agate.fmr.com)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-hel...
2001 Oct 03
8
Several R vs S-Plus issues
...gsub("x","X",s).
12) S function casefold() replaced in R by toupper() or tolower().
13) Functions missing from S: sub(), gsub(), chartr(), toupper(), tolower()
14) Log scale indicated in S with par(xaxt)=="l", in R with par("xlog")==T.
-- David Brahm (a215020 at agate.fmr.com)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-hel...
2001 Sep 27
5
Reading and writing to S-like databases
...] wrote:
> We are building the infrastructure for adding external databases which can be
> attached in the S fashion. One of the class of external data base will be
> that of S .Data directories.
I'm not sure where that ended up -- could you clarify, Ross? Thanks!
-- David Brahm (a215020 at agate.fmr.com)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-hel...
2001 Sep 13
1
rowsum dimnames
...22
This is because R's rowsum() code gives the first dimnames as "ugroup", which
is a factor, rather than "as.character(ugroup)". Is this a bug or a feature?
I'm using R 1.3.0 on Solaris 2.6. Help says rowsum's author is Terry Therneau.
Thanks!
-- David Brahm (a215020 at agate.fmr.com)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-hel...
2001 Sep 14
1
rowsum dimnames (PR#1092)
...s the first dimnames as "ugroup", which
is a factor, rather than "as.character(ugroup)". Similarly for the assignment
of names(x) in the case where x is a vector.
I'm using R 1.3.0 on Solaris 2.6. Help says rowsum's author is Terry Therneau.
Thanks!
-- David Brahm (a215020@agate.fmr.com)
Version:
platform = sparc-sun-solaris2.6
arch = sparc
os = solaris2.6
system = sparc, solaris2.6
status =
major = 1
minor = 3.0
year = 2001
month = 06
day = 22
language = R
Search Path:
.GlobalEnv, package:misc, package:io, package:arrays, package:ctest, Autoloads, pac...
2001 Oct 03
0
RE: [R] Several R vs S-Plus issues (PR#1112)
Also in assign() there some arguments lacking in R such as 'frame' and
'where', though I guess that 'frame' in S may be similar to 'pos' in R.
Harvey
-----Original Message-----
From: David Brahm [SMTP:a215020@agate.fmr.com]
Sent: Wednesday, October 03, 2001 11:36 AM
To: r-help@stat.math.ethz.ch
Cc: Kurt.Hornik@ci.tuwien.ac.at; r-bugs@r-project.org
Subject: [R] Several R vs S-Plus issues
Hi, all,
I've been converting code from S-Plus ("S" for short) to R for a
few weeks.
Here ar...
2002 Mar 08
2
Sys.putenv environment variables disappear (PR#1371)
Environment variables set with Sys.putenv() disappear (i.e. become "")
after a while, especially after heavy-duty I/O. Example:
R> x <- matrix(1., 3000, 3000)
R> save(x, file="myx.RData")
R> Sys.putenv(HOME="/tmp")
R> while (Sys.getenv("HOME") != "") {cat("ok\n"); load("myx.RData")}
The loop prints
2001 Oct 03
0
Several R vs S-Plus issues (PR#1110)
...gsub("x","X",s).
12) S function casefold() replaced in R by toupper() or tolower().
13) Functions missing from S: sub(), gsub(), chartr(), toupper(), tolower()
14) Log scale indicated in S with par(xaxt)=="l", in R with par("xlog")==T.
-- David Brahm (a215020@agate.fmr.com)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-deve...
2001 Oct 04
2
Characters subsetted with NA (was: Several R vs S-Plus issues)
Hello, R-devel!
I posted to R-help, and (inappropriately) to R-bugs, this R/S-Plus difference:
> LETTERS[c(NA,2)] in S is c("","B"), but in R is c("NA","B")
Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> wrote:
> I think we do not want to change this. ...
> R> is.na(LETTERS[c(NA,2)])
[1] TRUE FALSE
> so we really have NA but it is
2001 Sep 25
2
read.table() suggestions
...work on Unix. Then
it parses a single header line (using scan() on a textConnection), and compares
the columns available with the columns wanted. Everything is scanned as
character, then columns are tested with "type.convert" and converted as
appropriate. Enjoy!
-- David Brahm (a215020 at agate.fmr.com)
############################# Begin code #####################################
new.read.table <-
# Reads a tab-delimited data file into a list. Somewhat like:
# as.list(read.table(file, header=T, sep="\t", as.is=T, row.names=NULL,
# na.string...
2006 Oct 19
0
Memory leak
...d Hat Enterprise Linux 3.0 (i386 32-bit).
I would appreciate any help interpreting the output, or suggesting
followup investigation!
-- David Brahm (brahm at alum.mit.edu)
****************************** Script ********************************
#!/bin/csh
tail +3 "$0" | R -d "/home/a215020/Bin/bin/valgrind --tool=memcheck
--leak-check=full" --vanilla --slave --args $*; exit
unlink("/tmp/myddp1", recursive=TRUE)
unlink("/tmp/myddp2", recursive=TRUE)
gctorture(TRUE)
require(g.data)
y <- list()
s <- list(tgt="ABCDE", acq="FGHIJ", rat=1,...
2001 Oct 12
1
More trouble with empty subsets
Here's another curious problem with empty subsets:
R> x <- as.factor(1:10)
R> x[] <- NA
Error in "[<-.factor"(*tmp*, , value = NA) :
Argument "i" is missing, with no default
Bug, or merely different from S-Plus?
-- David Brahm (brahm at alum.mit.edu)
Peter Dalgaard <p.dalgaard at biostat.ku.dk> in thread [Trouble with 3-dots] said:
2001 Oct 12
1
lib.fixup
Hi, all,
Can anyone tell me what this line in library() does?
.Internal(lib.fixup(env, .GlobalEnv))
The reason I ask is that I'm writing a function that uses a bit of library()
code, and I want to know if I should include it:
g.data.attach <- function(dir, pos=2) {
env <- attach(NULL, pos, paste("package",basename(dir),sep=":"))
attr(env,
2001 Oct 22
1
round() doesn't (PR#1139)
R> round(100000/3, -2) - 33300
[1] -7.275958e-12
I would have hoped for 0. The problem seems to be specifically for negative
"digits". This is in 1.3.1 on Solaris 2.6 (full description at bottom).
[Apologies for making everyone read this 3 times; my bug.report() burped.]
Peter Dalgaard <p.dalgaard@biostat.ku.dk> says the problem is in fround.c,
which reads in part:
2001 Nov 01
3
Lost backslashes in parse()
I'm comparing R-1.3.0 on Solaris 2.6 to R-1.3.1 on WindowsNT. The following
5-line script returns TRUE on Unix but FALSE on NT:
fnam <- tempfile()
file.create(fnam)
txt <- paste("file.exists(\"", fnam, "\")", sep="")
expr <- parse(text=txt)
eval(expr)
The issue seems to be that backslashes get lost in the parsing. A workaround
is to change