Displaying 20 results from an estimated 2000 matches similar to: "Reconstructing LD function"
2003 Jan 28
6
reading non-existent files
Dear R-experts
I would like to read all files from a directory, the files have names
"myname0001.txt" etc. I paste the directory plus file names and
use "read.delim()".
My problem is that some file names are missing, so I get an error
and my program stops.
Is there a way to check for a null pointer analogous to C, so that
I can simply skip non-existent filenames?
Please do
2006 Jan 04
1
AW: QLA2xxx URGEND
2003 May 14
1
ROracle problem with Oracle9i on Red Hat 8.0
Hi,
I have a problem executing "library(ROracle)" in R:
OS/Software:
Redhat 8.0, all available patches applied
Oracle 9i v9.2.0.1.0
R v1.7.0
ROracle v0.5-0
DBI v0.1-5
The compilation and installation of ROracle went fine. However when I try to
load ROracle I get the following:
>> library(ROracle)
>Error in dyn.load(x, as.logical(local), as.logical(now)) :
> unable
2005 Jul 27
3
Asymmetric colors for heatmap
> Dear expeRts,
>
> Currently, my colors are as follows:
> mycol <-
> c("blue1","blue2","blue3","blue4","black","yellow4","yellow3","yellow2","y
> ellow1")
> heatmap(snp, Rowv=NA, Colv=NA, col=mycol)
>
> However, I would like to have the following colors:
> bright blue ->
2007 Jun 20
2
Computing time differences
Dear R users,
I have a problem computing time differences using R.
I have a date that are given using the following format: 20080620.00, where
the 4 first digits represent the year, the next 2 ones the month and the last
2 ones the day. I would need to compute time differences between two vectors
of this given format.
I tried around trying to change this format into any type of time serie
2005 Jul 12
3
bug in chdir option of source
I'm on R 2.1.0.
In the "source" function there is a bug preventing the proper use of the
chdir option (which simply doesn't work).
The problem is that in the function the following line occurs:
file <- file(file, "r", encoding = encoding)
This overwrites the variable "file" and later causes the check
if (chdir && is.character(file)
2015 Jan 28
3
Re: [PATCH v5 REBASE 0/4] virt-resize: add support for resizing logical
On Wed, Dec 17, 2014 at 03:07:11PM +0800, Hu Tao wrote:
> On Thu, Oct 30, 2014 at 10:46:52AM +0800, Hu Tao wrote:
> > Hi Rich,
> >
> > This is rebase of v5 series. Meanwhile, I found a bug when shrinking
> > partitions, and the fix is incuded in this version (patch 2).
>
> Hi,
>
> When support to resizing logical partitions is enabled, there is a
>
2003 Feb 14
1
FW: [Fwd: Re: [S] Exact p-values]
Dear all
Just for fun, I have just downloaded the paper mentioned below and checked
it with R-1.6.1.
Everything is ok with exception of Table 2b, where I get always 1 instead of
0.5:
> pbinom(1e15,2e15,0.5)
[1] 1
Which value should be correct?
Best regards
Christian Stratowa
==============================================
Christian Stratowa, PhD
Boehringer Ingelheim Austria
Dept NCE Lead
2011 Apr 25
2
[LLVMdev] inserting a fucntion call at the end of basic bloc
hi all,
i would like insert a fucntion call at the end of each basic bloc
the fucntion i have defined and declared at the begining of the module
ie i have written a pass derived from a module pass
virtual bool runOnModule(Module & M){
// i declared the fucntion and defined it
for (Module::iterator a = M.begin(), b = M.end(); a != b;
for (Function::iterator i = a->begin(), e =
2011 Apr 25
2
[LLVMdev] inserting a fucntion call at the end of basic bloc
2011/4/25 Duncan Sands <baldrick at free.fr>
> Hi Nabila,
>
> > i would like insert a fucntion call at the end of each basic bloc
>
> you can't, because only terminators are allowed at the end of a basic
> block.
> However you can try to insert the call before the terminator.
>
Yes, i mean before the termininator,
My problem is how to call a method
suppose
2015 Feb 03
2
Re: [PATCH v5 REBASE 0/4] virt-resize: add support for resizing logical
On Wed, Jan 28, 2015 at 03:43:19PM +0000, Richard W.M. Jones wrote:
> On Wed, Jan 28, 2015 at 02:24:15PM +0800, Hu Tao wrote:
> > On Wed, Dec 17, 2014 at 03:07:11PM +0800, Hu Tao wrote:
> > > On Thu, Oct 30, 2014 at 10:46:52AM +0800, Hu Tao wrote:
> > > > Hi Rich,
> > > >
> > > > This is rebase of v5 series. Meanwhile, I found a bug when
2011 Apr 25
0
[LLVMdev] inserting a fucntion call at the end of basic bloc
Hi Nabila,
> My problem is how to call a method
> suppose this fucntion
> void A(int x)
> {
> x=x+1;
>
> }
>
> should i define this function and declare it at the beginig of the module and
> create for it a basic bloc?
you can just declare the function (i.e. no need to give it a body), and call it.
You can then link with an object file that defines it. This is
2005 Jan 14
2
Porting from Linux to Windows
I intend to port an R project from Linux to Windows.
It involves C code that is loaded via dyn.load().
I could manage to produce a 'dll' File using cygwin which seems to be
o.k.
Now, using dyn.load("pcr.dll") i get:
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library
"c:/cygwin/home/pingu/rt-pcr/pcr.dll":
LoadLibrary
2011 Apr 25
0
[LLVMdev] inserting a fucntion call at the end of basic bloc
Hi Nabila,
> i would like insert a fucntion call at the end of each basic bloc
you can't, because only terminators are allowed at the end of a basic block.
However you can try to insert the call before the terminator.
...
> i tried to see an example with the demo, i saw that it instead of calling the
> function, it repeats all the instruction that are existing in the function
>
2005 Sep 17
4
xyplot and abline
Dear All,
I wonderif there is a simple way to draw a regression line in the xyplot:
more specifically, let:
age <- c(20:30, 31:40 )
age.cut <- cut(age, breaks = 2 )
y<- rnorm(20)
x <- rnorm(20,4,1)
xyplot(y ~ x| age.cut, xlab="x", ylab="y")
How to draw (in the plot given by xyplot) the two regression lines (y ~ x) corresponding to the two category
2004 Jul 26
3
computing sum of indicator variables
My problem is as follows:
i is a list of integers of variable length. Now I want to compute a new
vector/array that contains 1's at the positions indicated in i. For
example:
c(2, 4) -> c(0, 1, 0, 1)
Using something like
i = i - c(0, i[2:length(i) - 1]);
sapply(i, function(x) c(rep(0, x - 1), 1)));
faces me with the problem of concatenating the result, which I could
somehow not find a
2011 Apr 26
2
[LLVMdev] inserting a fucntion call at the end of basic bloc
2011/4/26 Duncan Sands <baldrick at free.fr>
> Hi Nabila,
>
>
> Now when i tried this pass an error says:
>> Wrong type for attribute noalias
>> tail call void @consume(i32 noalias 3, i32* @y) nounwind
>>
>
> noalias is only for arguments of pointer type. You probably meant it to
> be on the second argument rather than the first. I suggest you
2011 Sep 03
3
question with uniroot function
Dear all,
I have the following problem with the uniroot function. I want to find
roots for the fucntion "Fp2" which is defined as below.
Fz <- function(z){0.8*pnorm(z)+p1*pnorm(z-u1)+(0.2-p1)*pnorm(z-u2)}
Fp <- function(t){(1-Fz(abs(qnorm(1-(t/2)))))+(Fz(-abs(qnorm(1-(t/2)))))}
Fp2 <- function(t) {Fp(t)-0.8*t/alpha}
th <- uniroot(Fp2, lower =0, upper =1,
2003 Jul 21
4
generate a series of fucntion
Hi there,
I want to generate a large amount of functions,
say f=function(x,t) exp(-t[1]-t[2]*g_1(x)-t[3]*g_2(1+x))
where g_1(x) and g_2(x) are from a long list of moments, such as x, x^2,
log(x), log(1+x) .. and so on.
Any suggestions on how to do this efficiently?
thanks a lot.
x.w
2013 Jan 23
1
New Book: Statistical Psychology with R [in French]
Dear useRs,
French reading people among you might be interested by the following book:
Noel, Y. (2013). Psychologie statistique avec R [Statistical psychology
with R, in French], coll. PratiqueR, Paris: Springer.
http://www.springer.com/psychology/book/978-2-8178-0424-8
This book provides a detailed presentation of all basics of statistical
inference for psychologists, both in a fisherian