Displaying 20 results from an estimated 10000 matches similar to: "functions different in R and S"
2001 Oct 03
8
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 are some differences I've found, aside from the big well-known ones
(scoping, models, data storage) and the contents of Kurt Hornik's FAQ section
3.3.3. Let me start with the ones that seem like serious bugs or deficiencies:
1) LETTERS[c(NA,2)] in S is
2001 Oct 03
8
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 are some differences I've found, aside from the big well-known ones
(scoping, models, data storage) and the contents of Kurt Hornik's FAQ section
3.3.3. Let me start with the ones that seem like serious bugs or deficiencies:
1) LETTERS[c(NA,2)] in S is
2003 Oct 20
3
R - S compatibility table
Hello all - I've just recently been exploring R for the
first time. After noticing a few things that have changed
from S to R, I started looking for an R-S compatibility table
but didn't find it. Is such a table out there ? Where ?
Thanks much,
Purvis Bedenbaugh
purvis at mbi.ufl.edu
Examples:
'stdev' is now 'sd' - is it exactly the same computation ?
couldn't find
2003 Feb 24
1
convert Splus mapproject() in R
Hello everyone,
I was wondering if anyone knows how to convert the Splus mapproject( ) function for use in R, I would greatly appreciate your help. I am using the following system, R
Version 1.6.1 (2002-11-01) for SunOS 5.5 and Splus Version 5.1 Release 1 for Sun SPARC, SunOS 5.5.
Thanks,
Helen
2003 Jul 01
2
Computations slow in spite of large amounts of RAM.
Hi all,
I am a beginner trying to use R to work with large amounts of
oceanographic data, and I find that computations can be VERY slow. In
particular, computational speed seems to depend strongly on the number
and size of the objects that are loaded (when R starts up). The same
computations are significantly faster when all but the essential
objects are removed. I am running R on a machine
2002 Oct 25
4
R v/s S-plus
Hi all,
I have Splus and R both on my unix machine. I intend to keep only one of
them. R looks to be a better choice. But I want to confirm. Is there any
function or group of functions in Splus that are absent in R?
Thanks,
Saket.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send
2002 Aug 14
3
t-test via matrix operations
I need to calculate a large number of t statistics, and would like to do so via matrix operations. So far I have figured out a way to calculate the mean of each row of the matrix:
d <- matrix(runif(100000,1,10), 1000, 10) # some test data
s <- rep(1,ncol(d)) # a sum vector to use for matrix multiplication
means <- (d%*%s)/ncol(d)
This is at least 1 order of magnitude faster than
2002 Mar 17
5
compute variance of every column in a matrix without a loop
Is it possible to compute the variance of every column in a matrix
without a loop?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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-help-request at stat.math.ethz.ch
2002 Nov 15
2
Why no colSDs etc
Hi people,
If there is a fn "colMeans" why isn't there a "colSDs" etc
Thanks,
Phil.
--
Philip Rhoades
Pricom Pty Limited (ACN 003 252 275)
GPO Box 3411
Sydney NSW 2001
Australia
Mobile: +61:0411-185-652
Fax: +61:2:8923-5363
E-mail: pri at chu.com.au
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2002 Jan 28
4
Functions on matrix row level
Hi together,
I have some data in a matrix structure - say 1000 rows with 10 columns. And
I like to do some calculations (like max, avg or min) on row level.
The only solution I found so fare was using a loop like
for (i in 1:1000) {
max[i] <- max(matrix[I,])
}
It looks like that this is not very fast.
Does an other way exists?
Kind regards
Ulrich
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:
2003 Jan 15
2
Exception Handling
R Users:
How can I catch R errors and depend on this error call other R
functions in Perl?
The foolowing is the error message when I use perl call R.
Error in nls(modout ~ exp(-b1 * modin)/(b2 + b3 * modin), trace = F,
start = c(b1 = 0.005, :
singular gradient
Segmentation fault
Thanks,
Zhongming
2001 Oct 03
0
Several R vs S-Plus issues (PR#1110)
Hi, all,
I've been converting code from S-Plus ("S" for short) to R for a few weeks.
Here are some differences I've found, aside from the big well-known ones
(scoping, models, data storage) and the contents of Kurt Hornik's FAQ section
3.3.3. Let me start with the ones that seem like serious bugs or deficiencies:
1) LETTERS[c(NA,2)] in S is
2000 Jul 07
1
reorganizing a data frame
Hi,
I have what I think is an easy question.
I have a data frame, called stockdata, of stock prices that looks like this:
date ticker close
1 01/02/1998 GE 24.667
2 01/05/1998 GE 25.104
3 01/06/1998 GE 24.771
4 01/07/1998 GE 24.979
5 01/08/1998 GE 24.750
6 01/02/1998 HIT 71.125
7 01/05/1998 HIT 72.313
2004 Jun 09
1
Re: R equivalent of Splus rowVars function
Mark Leeds <mleeds at mlp.com> wrote (to S-News):
> does anyone know the R equivalent of the SPlus rowVars function ?
Andy Liaw <andy_liaw at merck.com> replied:
> More seriously, I seem to recall David Brahms at one time had created an R
> package with these dimensional summary statistics, using C code. (And I
> pointed him to the `two-pass' algorithm for variance.)
2012 Aug 27
3
String Handling() for Split a word by a letter
Hi,
here im unable to run a string handle function called unpaste().
for eg:- a<- "12345_mydata"
Actually my requirement what is i need to get , only 12345. Means that , i
need the all letter as a word which is before of first " _ " - symbol of
"a". i tried to do with unpaste, it says function not found. After that i
tried with "strsplit() ". it
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
2005 Aug 26
2
Unpaste Problem
Hello,
Easy ways to "unpaste"?
xp <- paste(x2, x3) # x2, x3 are two non-numeric columns.
.............
.........................
xfg <- data.frame(xp,sc1, sc2, sc3) # sc1,sc2, sc3 are numeric cols.
I want xp to be split up to form a new dataframe of the form (x3, sc1,
sc2, sc3).
IMPORTANT info : elements of xp have the form abc<space>efg, with abc
in x2 and efg in
1999 Jul 20
1
Data storage in R vs. S
Hi,
Another newbie question; I only just now downloaded and tried the R
software. My big initial objection is the way R stores the entire working
database in one file between sessions. In S, I have always stored many
large parallel objects in a database (e.g. stock-by-date matrices of close,
high, low, volume, ...), knowing that S would only read the one or two files
I wanted to work with at
2001 Sep 27
5
Reading and writing to S-like databases
Hi,
I asked this question 2 years ago, and would like to know if the answer has
changed.
In S-Plus, I build databases of many large objects. In any given analysis,
I only need a few of those objects, but attach'ing the whole database is fine
since objects are only read as needed. How can I do the same thing in R,
without reading the entire database?
One possibility is to treat