Displaying 20 results from an estimated 3000 matches similar to: "should lapply preserve attributes?"
2001 Jul 10
1
Object finalization
I see some code in R to attach finalizers to external pointer references
(Register[C]Finalizer). Anyone have an example of how to code the
finalizer? R_RegisterCFinalizer accepts a C function, but I can't see
how to get it to operate on the pointer, since the pointer is not passed
to the function when its called. RegisterFinalizer takes an R closure,
but how is it called from R (tried
2002 Apr 10
1
Layout of Fourier frequencies
I'm doing convolutions in the frequency domain and need to know the
layout of the Fourier modes returned by fft. (This is leading up to a
more involved question about moment generating functions, but I need to
know if I've got this part correct first.)
I think in 1D the pattern is:
0 1 2 3 -2 1 (even)
0 1 2 3 -3 2 1 (odd)
In 2D is it simply (for a square matrix):
0 1 2 -1 (horizontal)
2002 Mar 22
1
name spaces?
I'm revisiting the R/S DBI package and was wondering if there is any
plan to implement package name spaces in R/S. I've taken to the habit of
prepending a few characters to function names in packages to avoid
collisions, e.g., dbConnect(). An alternative would be DBI::connect()
(s/::/preferred/) which in some ways I find more pleasing. Not having
thought about it in detail, it seems pretty
2001 Jul 31
1
"internal" keyword
I seem to remember something about an "internal" keyword for R doc
files. How do we use it?
Tim
--
Timothy H. Keitt
Department of Ecology and Evolution
State University of New York at Stony Brook
Stony Brook, New York 11794 USA
Phone: 631-632-1101, FAX: 631-632-7626
http://life.bio.sunysb.edu/ee/keitt/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2001 Aug 28
1
Suggested change to documentation
Its not clear from the documentation whether one should do
\keyword[key1, key2}
or
\keyword{key1}
\keyword{key2}
in .Rd files. I believe the latter is correct. (At least 'R CMD check'
complains when given the first version.) It would help to make this
explicit in the R extension writing docs.
Tim
--
Timothy H. Keitt
Department of Ecology and Evolution
State University of New
2001 Nov 01
1
migration to common runtime?
I'm curious if any of the core R developers have considered the
possibility of hosting R (v2?) on the parrot common runtime environment.
Perl6 will generate byte-code for parrot, as will some future version of
python. I can imagine both drawbacks and advantages. Some advantages
would be fast byte-code execution and freely mixing perl, python and R
modules. Anyone looked into this?
Tim
2002 Apr 27
1
Question about .Call
Can a C function wrapped with .Call return void? Or must it return a
valid SEXP? Thnx.
Tim
--
Timothy H. Keitt
Department of Ecology and Evolution
State University of New York at Stony Brook
Stony Brook, New York 11794 USA
Phone: 631-632-1101, FAX: 631-632-7626
http://life.bio.sunysb.edu/ee/keitt/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing
2001 Mar 19
3
generic database access methods
I've been putting together a package that defined generic methods for
database access. The packages is called "Rdbi." It borrows as much as
possible from existing database packages / proposals. I'd like to start
a discussion about the proposed interface. Here's what I've come up
with so far:
#
# Rdbi: connectionMethods.R
#
dbConnect <- function(dbObj, ...)
2005 Oct 30
1
Help with Subtracting an effect from a Mixed Model
Hi Everyone,
I posted a similar question about a week ago, but haven't gotten any
replies -- I'm afraid that's because my previous question was too
vague. Let me try again with a more specific question, and I hope
someone can help. NOTE, I know I should be using the newer lme4
package, I just haven't had a chance to update my version of R yet, so
the question below relates
2005 Oct 26
1
syntax for interactions in lme
Hello,
I am trying to make the switch from SAS, and I have a fairly elemental
problem with syntax using the nlme package for analyzing mixed models.
There was a previous question on this topic posted to this list, so I
apologize for redundancy, but I didn't understand the advice given to
that inquiry. The model I want to run has the following factors:
Host (fixed)
Sire (random)
Dam
2002 Jan 29
3
dimnames usage in ts (PR#1288)
Full_Name: Tim Keitt
Version: 1.4
OS: Linux
Submission from: (NULL) (129.49.19.70)
I think this code in 'ts' is incorrect:
if (is.matrix(data) || is.data.frame(data)) {
nseries <- ncol(data)
ndata <- nrow(data)
dimnames(data) <- list(NULL, names)
}
since
> x <- data.frame(matrix(rnorm(100),ncol=10))
> names(x)
[1] "X1"
2003 Apr 18
1
MCMCpack gelman.plot and gelman.diag
Hi,
A question. When I run gelman.diag and gelman.plot
with mcmc lists obtained from MCMCregress, the results are following.
> post.R <- MCMCregress(Size~Age+Status, data = data, burnin = 5000, mcmc = 100000,
+ thin = 10, verbose = FALSE, beta.start = NA, sigma2.start = NA,
+ b0 = 0, B0 = 0, nu = 0.001, delta = 0.001)
> post1.R <- MCMCregress(Size~Age+Status, data
2016 Jul 31
0
[Openmp-dev] How to get the function definition of a kmpc_micro call
Thanks Arpith for this pointer but it did not contain what I was looking
for.
However, I solved my issue by finding that the BitCastInst used when
outlining OpenMP parallel region offers a method for retrieving the
original value within the bitcast via stripPointerCasts().
So what I did to retrieve omp_outlined..45 is:
//bitcast is the third argument of __kmpc_fork_call
Value *vcall =
2003 Apr 15
1
Installing RMySQL with MySQL-4.0.12 on Debian Linux
Hi,
I got error messeges when I try to install RMySQL. The version of
MySQL installed on my Debian is 4.0.12. Error messages were about the
location of /include and /lib of MySQL distribution. Final error
messages were;
usr/bin/ld: cannot find -lz
Any tips or advices?
Thanks
--
Sung-youn Kim
--------------
Dept. of Political Science
Stony Brook University (SUNY at Stony Brook)
Office:
2016 Jul 26
2
[LLVMdev] Interprocedural use-def chains
Thanks for your reply.
Yes, I was about to recurse over the use list of the argument in the called
function. I did not want to pursue that because with this solution, I am
going to implement the interprocedural part myself and was wondering if
that was not already done. I was not also 100% sure that this will work for
any type of arguments.
If, based on your response, this is my only solution
2016 Jul 26
2
[LLVMdev] Interprocedural use-def chains
Hello,
I have been using the USE class to access the use-def chains of different
values. However, what I have noticed is that the set of users of a
particular value is limited for the appearance of that variable in the
current function.
How can I get the interprocedural use of a particular value? For example,
if a variable *a* is used as an argument in a function call *foo*, the USE
analysis
2016 Jul 30
0
How to get the function definition of a kmpc_micro call
Hello,
The third argument of the OpenMP runtime call __kmpc_fork_call is the
outlined function resulting from omp parallel directive; this is of type
kmpc_micro. I can get this argument as an LLVM value by using
(callInst->getArgOperand...), but once I get this value, i am stuck in
knowing its class type. An example of this value can be:
void (i32*, i32*, ...)* bitcast (void (i32*, i32*,
1999 Feb 09
1
bug on cancor (PR#116)
When I use the function cancor of mva package, I found that it doesn't
work when one of the matrix has only one column, or both have only
one column. The function in Splus 5 with the same name works under those
situations.
The version of R I am using is 0.63.2 (released on Jan., 1999) on Solaris.
Kenny Ye
Assistant Professor
Department of Applied Math and Statistics
SUNY at Stony Brook
2000 Jan 03
4
leaps
Hi, there,
S+ has a function leaps which can be used for criterion based model
selection. Is there an equivalent function in R?
thanks in advance.
Kenny Ye
Assistant Professor
Department of Applied Math and Statistics
SUNY at Stony Brook
Stony Brook, New York 11794-3600
(516)632 9344
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2001 Apr 20
5
map projections
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 905 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20010420/61ada248/attachment.bin