Dear All,
When bootstrapping a statistics based on more than one vector, from a
data.frame or a matrix object, it looks like I am not able to pass the
data to R. What am I doing wrong?
I use the library bootstrap.
Here is an example with a data.frame called data
boot2_bootstrap(data, theta,
Hi,
I'm trying to write a method such that my own classes can be used with the
groups like Summary and Math, but when I tried to look for examples or
just wanted to get an idea of which functions are the members of a group, I
found out that the function getGroupMembers is not present... I
I probably shouldn't suggest this, because I can't volunteer to implement
it. However, I bring it up in the hopes that if (1) others agree and (2)
the R core group think it a good idea that a suitable volunteer will come
forward.
I am finding that the flood of R email messages is becoming
Hi:
I was wondering why Marsaglia's new ziggurat method for generating
deviates from the standard normal distribution has not been implemented
in the R base package. I know that it is available in SuppDists
pacakage of Bob Wheeler, as rziggurat. According my timing tests, it
is about 6 to 7
Do you want to write S3 or S4 methods for these groups? Both systems have
groups with those names (and they are not the same). In either case, the
details are in ?.Methods (in current versions of R).
On Fri, 30 May 2003, Anton Crombach wrote:
I'm trying to write a method such that my own
Is there a way to detect if the opening of a connection to a pipe was
successful or not? Here are two examples
# Works
con - pipe(ls)
res - open(con, open=r)
print(res)
NULL
# Does not work
con - pipe(unknown_command)
res - open(con, open=r)
'unknown_command' is not recognized as
S4 methods, I'm using Programming with data (~ the green book) as my main
reference for programming. Not everything is the same in R, usually that was
not a problem, but using these groups I got a bit lost. I've been looking in
the R docs of ?setGenerics, ?setGeneric and so on already.
Do you
grep() by itself isn't quite right for this job:
a-Is a Fish
b-aFish
if (grep(b,a)) c-TRUE
Error in if (grep(b, a)) c - TRUE : argument is of length zero
-Don
At 6:24 PM -0500 5/29/03, Dirk Eddelbuettel wrote:
On Thu, May 29, 2003 at 05:11:24PM -0600, [EMAIL PROTECTED] wrote:
Does R have
Accuracy and reliability are more important than speed.
As you say, it is available elsewhere, but who actually needs a faster
method? 1 million normals take 0.55s on my machine (an Athlon 2600): 1
million uniforms take 0.16s, so there is not I think scope to be `6 to 7
times faster' at R level.
At 07:17 AM 5/30/2003, Mike Prager wrote:
I probably shouldn't suggest this, because I can't volunteer to implement
it. However, I bring it up in the hopes that if (1) others agree and (2)
the R core group think it a good idea that a suitable volunteer will come
forward.
I am finding that the
OK, regexpr gets me what I needed, thanks to all..
One more thing, say I have a Table like:
0 RAW1 RAW2 RAW3 AVE1 AVE2 AVE3
1 1 252.3 1.2 4.5
2 0 361.7 2.2 3.5
3 3 160.1 3.9 1.6
and I want to create a sub table that only has the RAW columns.
Problem is
On Fri, 30 May 2003, Henrik Bengtsson wrote:
Is there a way to detect if the opening of a connection to a pipe was
successful or not? Here are two examples
# Works
con - pipe(ls)
res - open(con, open=r)
print(res)
NULL
# Does not work
con - pipe(unknown_command)
res -
olá,
estou tentando converter a variável b (abaixo) em uma matriz com duas
colunas, sem muito sucesso, alguém teria alguma sugestão?
muito obrigado,
a-outer(1:5,1:7,FUN=paste)
b- sample(a,10)
[1] 4 2 5 7 3 3 4 1 4 5 3 5 5 2 2 1 3 7 1 4
Matriz desejada:
4 2
5 7
..
3 7
1 4
Thanks Rolf and J.R. both of these solutions worked for me and
thanks to all the others for your suggestions, I was able to
accomplish what I needed.
xx - df[,grep('RAW',names(df))]
xxx - df[,regexpr('RAW',names(df)) 0]
Mike
-Original Message-
From: mhoward
Sent: Friday, May 30,
Have you considered regexpr and substr or substring?
hth. spencer graves
Danilo Tadashi Tagami Kamimura wrote:
olá,
estou tentando converter a variável b (abaixo) em uma matriz com duas
colunas, sem muito sucesso, alguém teria alguma sugestão?
muito obrigado,
a-outer(1:5,1:7,FUN=paste)
b-
I am using dataframes and I and I want to delete (remove) a specific
column by name ...
the data frame has 14 columns with several names and only need some.
I tried to overwrite the columns with a single value but that in not very
clean as I need to export the data to file.
The rm command gives
Mike Prager [EMAIL PROTECTED] writes:
I am finding that the flood of R email messages is becoming difficult
to deal with, even using filters, etc., in my email client. Would we
be better served by establishing a Usenet newsgroup? Would that be
practical or impractical? Would it create
Danilo Tadashi Tagami Kamimura wrote:
olá,
estou tentando converter a variável b (abaixo) em uma matriz com duas
colunas, sem muito sucesso, alguém teria alguma sugestão?
muito obrigado,
a-outer(1:5,1:7,FUN=paste)
b- sample(a,10)
[1] 4 2 5 7 3 3 4 1 4 5 3 5 5 2 2 1 3 7 1 4
Matriz desejada:
4
On Fri, 30 May 2003, Mark Marques wrote:
I am using dataframes and I and I want to delete (remove) a specific
column by name ...
the data frame has 14 columns with several names and only need some.
I tried to overwrite the columns with a single value but that in not very
clean as I need to
I'm trying to get a translation of some Splus code going.
My problem is with the S-plus get.message() function not
existing in R. Is there a replacement or alternative?
ErrorHandler.func-function()
{
cat(app.terminated\n);
cat(paste(err.fatal,get.message(),\n,sep=));
dump.calls();
}
or, if you no longer want the columns and don't want to create more
objects, you could:
rtu$Ri - NULL
On Fri, 2003-05-30 at 11:51, Mark Marques wrote:
I am using dataframes and I and I want to delete (remove) a specific
column by name ...
the data frame has 14 columns with several names
Robin Hankin [EMAIL PROTECTED] wrote:
Anyway, now I'm trying to run R in batch mode, but I'm getting extra
output, which I don't want (RedHat 8.3, R-1.7.0):
...
r:~% R CMD BATCH --vanilla --slave test.R
Why not just run:
unix R --vanilla --slave test.R test.out
Then the options(echo=FALSE)
Since it is available in the `SuppDists' package, why do we need it in
the `base' package? There are perhaps hundreds of useful functions that
exist in external packages that are not in `base'. My understanding was
that one goal was to keep `base' from getting too bloated.
-roger
Ravi
On Fri, 30 May 2003, chiara peroni wrote:
I use an old version of R (5.02). The reason I do not use the package
boot on the last version of R, is the clash of the package itself with
expressions contained in other packages, i.e. thesm library. I don't
know if you have the same problem.
Hi
I am learning about sparse matrices and wonder if R can create them from a full
matrix. Can anyone tell me how I might be able to accomplish this.
--
Harold C. Doran
Director of Research and Evaluation
New American Schools
675 N. Washington Street, Suite 220
Alexandria, Virginia 22314
Hi everyone,
Does anyone know how to get the functions we've made to work as a package?
version
_
platform sparc-sun-solaris2.9
arch sparc
os solaris2.9
system sparc, solaris2.9
status
major1
See the PDF manual Writing R Extensions from the CRAN website.
-roger
Huiqin Yang wrote:
Hi everyone,
Does anyone know how to get the functions we've made to work as a package?
version
_
platform sparc-sun-solaris2.9
arch sparc
os
Is there a way to specify the color of the main title, the subtitle, or
the axis labels? I mean, for instance, something like
title(main=cougar, col=2)
For me, the above command produces the color black; that is, the col
argument has no effect.
I'm on a Windows 2000 machine with
version
If you found my subject heading to be confusing then I'm sure you'll enjoy
the example I've included below. I find the apply type functions to be
wonderful for avoiding loops but when I use them with existing functions, I
end up using loops anyway to extract the vectors I want. I would appreciate
Thanks.
--
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
[EMAIL PROTECTED] * andrew_perrin (at) unc.edu
On Fri, 30 May 2003, Prof Brian Ripley wrote:
lme does
Hello-
I am trying to download packages from CRAN to my Window-based system. I
downloaded the most recent version of Perl, as instructed in the Install
Manual and the car package, just as a trial.
Where should they reside within my computer: the unzipped Perl I have
placed at
Actually, check the archives about a year ago when this was brought up and the
associated
problems. Ranging from spam harvesters, copyright and the like.
Best, MEH
--
Mark Hall
Niigata Prefectural Museum of History
__
[EMAIL PROTECTED] mailing
Hi,
On Fri, 30 May 2003 [EMAIL PROTECTED] wrote:
Date: Fri, 30 May 2003 17:21:11 -0500
From: [EMAIL PROTECTED]
To: R Help [EMAIL PROTECTED]
Subject: [R] Downloading packages from CRAN
Hello-
I am trying to download packages from CRAN to my Window-based system. I
downloaded the
I have windows version of R v1.6.2
I have downloaded the qtoolbox.zip from
http://www.cmis.csiro.au/S-PLUS/qtoolbox/
My R command line is
install.packages(C:/Program Files/R/qtoolbox.zip, .libPaths()[1], CRAN =
NULL)
and I get the following error message:
updating HTML package descriptions
34 matches
Mail list logo