Displaying 20 results from an estimated 10000 matches similar to: "Conditional Sampling"
2009 Sep 08
5
sparse vectors
Hi
I deal with long vectors almost all of whose elements are zero.
Typically, the length will be ~5e7 with ~100 nonzero elements.
I want to deal with these objects using a sort of sparse
vector.
The problem is that I want to be able to 'add' two such
vectors.
Toy problem follows. Suppose I have two such objects, 'a' and 'b':
> a
$index
[1] 20 30 100000000
2016 Dec 21
2
Request: Increasing MAX_NUM_DLLS in Rdynload.c
On Tue, Dec 20, 2016 at 7:39 AM, Karl Millar <kmillar at google.com> wrote:
> It's not always clear when it's safe to remove the DLL.
>
> The main problem that I'm aware of is that native objects with
> finalizers might still exist (created by R_RegisterCFinalizer etc).
> Even if there are no live references to such objects (which would be
> hard to verify), it
2009 Nov 17
3
Calculating the power of a negative number
Hello,
I use R a lot, one thing bugs me is that when I try the following
> x<- -8
> x^(1/3)
[1] NaN
However, it is fine with -8^(1/3). Priority goes to the power. Can you help
me out for this? Thanks.
Best,
Zhiyuan J. ZHENG
Ph.D. Candidate
Economic Department
Virginia Polytechnic Institute and State University
Phone: 540-231-5120 , Blacksburg, VA, 24060
2007 Jan 30
3
silent loading of packages
I would like to turn off all the messages during
library(aPackage) or
require(aPackage)
I tried different commands: invisible, capture.output, sink but none of them is working.
For example, loading VGAM, gives a lot of unnecessary messages:
> library(VGAM)
Attaching package: 'VGAM'
The following object(s) are masked from package:splines :
bs
The
2011 Mar 22
2
Infinite loop
R experts,
Hello, I am trying to sample a vector 1:40 without replacement such that no element in the new vector
is within 7 units of either of its immediate neighbors. This is part of a larger program I am working
on. The following code works well about 65 % of the time (14/40). The problem I encounter happens when
the last element remaining to be sampled from the vector STRATA is within 7
2009 Apr 17
5
Binomial simulation
Hi Guy's
I was wondering if someone could point me in the right direction.
dbinom(10,1,0.25)
I am using dbinom(10,1,0.25) to calculate the probabilty of 10 judges
choosing a certain brand x times.
I was wondering how I would go about simulating 1000 trials of each x value
?
regards
Brendan
--
View this message in context:
2009 Jun 18
3
R function found in two packages !
Hi,
Is there a mean to automatically choose one version of the 'rbind' function ? By default, R chose the 'rbind' from {base}, i would lke to use the one from {IRanges}...
Is it possible to set that using 'par' ?
> ?rbind
Help on topic 'rbind' was found in the following packages:
Package Library
IRanges
2019 Jan 22
3
Changing the imaps port #
Dovecot 2.3.4, FreeBSD 11.2
Due to comcast buisness ISP intercepting imaps I need to have my clients
connect to non-standard port (9999). Previously I had been using stunnel
to receive the imaps connection and forward it to the imap port over
127.0.0.1. But I would like to retire stunnel and have my imap clients
connect remotely.
I have configured the imap-login service -
service imap-login {
2009 Feb 25
1
Unexpected side effect of the ":::" operator on the value of isGeneric
Hi,
when running the following on a fresh R,
library("IRanges")
annotation
showMethods("annotation")
Biobase:::annotation
showMethods("annotation")
I get (see the "^^^^^" marked output at the bottom):
> library("IRanges")
Carico il pacchetto richiesto: 'IRanges'
The following object(s) are masked from package:base :
2010 May 27
10
A couple of questions
Hi,
I''ve been looking at Btrfs and have a couple of naive questions that don''t
seem to be answered on the wiki or in the articles I''ve read on the
filesystem.
First: discovering a file''s checksum value.
Here''s the scenario: software is writing some data as a fresh file. This
software happens to know (a priori) the checksum of this data; for
2006 Dec 18
1
Can't find lcabinet when runnig make crosstest
Hi,
when I run make crosstest, I get an error message saying it can't find
lcabinet :
make[2]: Entering directory '/home/colin/Devs/wine/dlls/advpack/tests'
i686-mingw32-gcc advpack.cross.o files.cross.o install.cross.o
testlist.cross.o -o advpack_crosstest.exe -lcabinet -luser32 -ladvapi32
-lkernel32
/usr/lib/gcc/i686-mingw32/3.4.4/../../../../i686-mingw32/bin/ld: can't
find
2019 Jan 22
3
Changing the imaps port #
Yes, I am pretty sure about that. I originally was connected via AT&T DSL
but wanted the fast access of cable modem. I need permanent IPs which
required me to contract with Comcast buisness. Once I switched over, I was
no longer able to access my imap server, which was as I mentioned, stunnel
listening on the imaps port and forwarding to dovecot listening on the imap
port.
I was getting
2009 May 10
2
In C, a fast way to slice a vector?
Hello,
Suppose in the following code,
PROTECT(sr = R_tryEval( .... ))
sr is a RAWSXP vector. I wish to return another RAWSXP starting at
position 13 onwards (base=0).
I could create another RAWSXP of the correct length and then memcpy
the required bytes and length to this new one.
However is there a more efficient method?
Regards
Saptarshi Guha
2016 Dec 20
2
Request: Increasing MAX_NUM_DLLS in Rdynload.c
On Tue, Dec 20, 2016 at 7:04 AM, Henrik Bengtsson
<henrik.bengtsson at gmail.com> wrote:
> On reason for hitting the MAX_NUM_DLLS (= 100) limit is because some
> packages don't unload their DLLs when they being unloaded themselves.
I am surprised by this. Why does R not do this automatically? What is
the case for keeping the DLL loaded after the package has been
unloaded? What
2017 Dec 29
2
Facing problem in installing the package named "methyAnalysis"
Dear Sir,
I have been using R for a long time. But recently I have faced a problem
when installing the Bioconductor package named "methyAnalysis". Firstly it
was require to update my older R (R version 3.4.3 (2017-11-30)) in to newer
version. That time I have also updated the RStudio software.
After that when I have tried to install the package named "methyAnalysis".
It
2017 Dec 29
2
Facing problem in installing the package named "methyAnalysis"
Thank you Michael Dewey.
Can you please send me the email id for Bioconductor.
regards
Pijush
On Fri, Dec 29, 2017 at 5:20 PM, Michael Dewey <lists at dewey.myzen.co.uk>
wrote:
> Dear Pijush
>
> You might do better to ask on the Bioconductor list as IRanges does not
> seem to be on CRAN so I deduce it is a Bioconductor package too.
>
> Michael
>
>
> On
2015 Jan 13
2
R CMD build looking for texi2dvi in the wrong place (R-devel)
R CMD build fails with recent R-devel because it is looking for texi2dvi in /usr/local/bin, but on this system, MacTex has installed it in /usr/bin.
$ R CMD build IRanges
* checking for file 'IRanges/DESCRIPTION' ... OK
* preparing 'IRanges':
* checking DESCRIPTION meta-information ... OK
* cleaning src
* installing the package to build vignettes
* creating vignettes ... ERROR
2011 Apr 15
3
DESCRIPTION file and Rd examples
I have a confusing error from R CMD check that I don't get when running the example manually by hand.
In the \examples section of an Rd file, I create a GRanges object, then I call a function with the GRanges object, whose first 2 lines are
require(GenomicRanges)
annoDF <- as.data.frame(anno) # anno is the GRanges object.
and that second line gives:
Error in
2004 Jan 12
3
MeetMe issues?
Hi all,
i have a setup with chatrooms, several MeetMe conferences wich users can
change inbetween. 10 users maximum in each room.
It seems like when i have more than 40-45 users on the system at the same
time asterisk drops abt 20 and continnues buisness as usual.
Is there anyone else who have run inte this problem? Any solutions?
It would me neat to hear about peoples experiences with MeetMe,
2012 Dec 17
1
Code works standalone, yet same code fails when part of package
Hi
I'm missing something here but I cannot figure out what. What I can see is that the same code works when I load it via source(...) yet fails when I execute it after loading the package I have built (which includes the code.
Below is a transcript of my R session. First I load the code from a file, using source(). Then I execute it fine. Then I remove the function object, I load the