Displaying 20 results from an estimated 30000 matches similar to: "R: did you know ``comment(.) and comment(.) <- ...''"
2006 Apr 06
2
prevent reassignment of function names
Hi.
I'm trying to find a systematic way to prevent assignment to names of
existing functions. I've tried reassigning to the assignment operator,
with mixed results. The function definition for "<-" below works as
hoped for the demonstrated assignments to a and c. However, for the
assignment based on the test function, it appears that the formal
argument is not
2009 Dec 17
5
?setGeneric garbled (PR#14153)
Full_Name: Ross Boylan
Version: 2.10.0
OS: Windows XP
Submission from: (NULL) (198.144.201.14)
Some of the help for setGeneric seems to have been garbled. In the section
"Basic Use", 5th paragraph (where the example counts as a single line 3rd
paragraph) it says
<quote>
Note that calling 'setGeneric()' in this form is not strictly
necessary before calling
2013 Jan 19
1
dummy encoding in metafor
Hi,
I am quite new to R and in need of some advice. I am trying to conduct a meta regression over a some studies with about 7 mod variables which I have to dummy encode.
I have found the following piece of code in the manual for the metafor library:
### manual dummy coding of the allocation factor
alloc.random <- ifelse(dat$alloc == "random", 1, 0)
alloc.alternate <-
2016 Feb 16
2
Voicemail using object storage?
Hey,
I've found a bit of chatter about people using hacks to copy voicemail
messages into object storage (like S3) after they've been recorded. But
I was wondering if any work has been done on the VoiceMail app to
actually store and retrieve messages to/from an object store?
Cheers,
Andrew
--
Andrew Ruthven, Wellington, New Zealand
MIITP, ITCP
At work: andrew.ruthven at catalyst.net.nz
2014 Apr 03
3
[LLVMdev] SIMD Projects with LLVM
Hi everyone. After lurking for a while, this is my
first post to the list.
I am working with some graduate students on the general
topic of compiler support for SIMD programming and specific
projects related to LLVM and my own Parabix technology
(parabix.costar.sfu.ca).
Right now we have a few course projects on the go and
already a question arising out of one of them (SSE2 Hoisting).
2006 May 03
2
rake appdoc Question regarding comment formatting
I tried googling and searching the forums here but was unable to locate
an answer, please forgive if this has been covered.
Is there any way to provide formatting guidelines to dictate how parsed
comments are displayed in the resulting html? In the simplest example,
is there a way to specify a linebreak (break tag)?
Thanks,
Andy
--
Posted via http://www.ruby-forum.com/.
2009 Jul 29
1
Systematic resampling (in sequential Monte Carlo)
Dear all,
Here is a little coding problem. It falls in the category of "how can I do
this efficiently?" rather than "how can I do this?" (I know how to do it
inefficiently). So, if you want to take the challenge, keep reading, otherwise
just skip to the next post - I won't be offended by that ;-)
I am coding a particle filter and I want to use systematic resampling to
2007 Nov 11
4
Who''s using --format rdoc
I''m doing some housekeeping and just realised that the rdoc formatter
produces gibberish:
http://rspec.rubyforge.org/rdoc/files/EXAMPLES_rd.html
Will anyone protest if I just go ahead and remove it? (I can''t imagine
anyone using it, especially with the much better HTML formatter)
Aslak
2008 Jul 27
2
Link functions in SEM
Is it possible to fit a structural equation model with link functions in R? I
am trying to build a logistic-regression-like model in sem, because
incorporating the dichotomous variables linearly seems inappropriate. Mplus
can do something similar by specifying a 'link' parameter, but I would like
to be able to do it in R, ofcourse.
I have explored the 'sem' package from John Fox,
2002 Sep 10
1
Fw: Problem joing a W2KSP1 client to a Samba PDC (2.2.5).
The Virus controllers wouldn't let me send the attachment...
----- Original Message -----
From: "Trevor Fraser" <trevor@systematic.co.za>
To: "Tommy Eriksson" <tommy.eriksson@ctakt.com>
Cc: <samba@lists.samba.org>
Sent: Tuesday, September 10, 2002 6:32 PM
Subject: Re: [Samba] Problem joing a W2KSP1 client to a Samba PDC (2.2.5).
> Hi Tommy.
>
>
2003 Feb 24
3
Test suites
I have a collection of functions, class definitions and methods which I
would like to test systematically for their correctness after changes to
their code, and also after major R revisions. I believe that the correct
term for these systematic tests (as opposed to more informal tests) is a
'test suite'. Does anyone [apart from Pat Burns :-) ] have code, or
templates, or specific
2016 Jul 21
2
VoiceMail - Allow * for only some users
Hey,
I have free calling to between DDIs and cellphones on our group plan. I
figure it'd be nice to allow staff with those cellphones to be able to
forward callers to their VoiceMail to their cellphones using the *
feature.
I have a standard extension macro that has VoiceMail support.
So far I've done this by duplicating the standard extension macro, and
adding this rule (where ARG1 is
1997 May 27
1
R-alpha: signif( small , d) gives NA
signif(.) is a <primitive> function.
Unfortunately, I couldn't even find WHERE in the source,
signif(.) is defined.
Here are the symptoms:
xmin <- .Machine $ double.xmin
signif(xmin,3) #--> NA
umach <- unlist(.Machine)[paste("double.x", c("min","max"), sep='')]
for(dig in 1:10) {cat("dig=",dig,": ");
2010 May 04
1
All possible paths between two nodes in a flowgraph using igraphs?
Hi all
Is there any systematic way to compute all possible paths, first-order loops
and j-th order loops between two given nodes in a flowgraph (directed graph
with cycles) - preferably using the igraph library in R? I have checked the
igraph documentation but I can't figure out any direct and systematic way to
do so. Any ideas?
I use the following definitions from Butler, R. and A.
2009 Jan 22
3
how to study the lead and lag relation of two time series?
Hi all,
Is there a way to study the lead and lag relation of two time series?
Let's say I have two time series, At and Bt. Is there a systematic way
of concluding whether it's A leading B or B leading A and by how much?
Thanks!
2006 Aug 09
1
scaling constant in optim("L-BFGS-B")
Hi all,
I am trying to find estimates for 7 parameters of a model which should fit
real data. I have a function for the negative log likelihood (NLL) of the
data. With optim(method="L-BFGS-B",lower=0) I am now minimizing the NLL to
find the best fitting parameters.
My problem is that the algorithm does not converge for certain data sets. I
have read that one should scale the fn
2012 Aug 15
2
sample() from (un-)sorted vectors
Hello,
Vector y is an alphabetically sorted version of vector x. Will both
samples, X and Y, be "absolutely" random or will they have systematic
differences? And: Should I sort or shuffle a vector before sampling?
Thank you, *S*
x <- as.factor(LETTERS[sequence(10:1)])
y <- sort(x)
X <- sample(x, 5)
Y <- sample(y, 5)
--
Sascha Vieweg, saschaview at gmail.com
2000 Jun 13
3
Question on closure (lexical scoping) and encapsulation
Dear R users,
I have two related questions about scoping and data encapsulation.
One is fairly specific - I am looking at "scoping.R" which is used in
demo(scoping) - it's an example of lexical scoping and encapsulation.
Where is the 'total' stored? It is not an attribute in 'ross' or
'robert'
however, functions like balance() have access to it.
Is it more
1997 Aug 21
2
R-alpha: thoughts on batch and fortran
Batch:
For me, batch in its present state is broken and useless. My primary
need for batch is to produce a final output file of a session after I
have worked out a sequence of procedures. I save my instructions in a
file that I can source, then run it in batch to have a copy of input
and output together. (If there was a log file (or dribble), this
problem would be solved.) At present, there are
1997 Aug 05
3
R-alpha: Version 0.50-a1 patches
A set of patches for R-0.50-a1 is now available as
ftp://stat.auckland.ac.nz/pub/R/R-0.50-a1.patch1.gz
The patches mainly fix problems reported since R-0.50-a1 but some
older problems are also fixed.
Here is the list of changes.
Ross
o Many subsetting and mutation problems with the new "expression" type
have now been fixed.
o When ask=T is set in par() the user is instructed