Displaying 20 results from an estimated 3000 matches similar to: "help with segmentation fault"
2008 Mar 30
1
norm_rand() in R-extension vs rnorm in R ---which is better?
I need to generate good quality of random numbers from univariate
normal distribution for further transformation. I tried rnorm in R but
it was not good sometimes. Someone said C++ standard library or
Fortran's built-in functions for that are good. I found that there is
double norm_rand() in R-extension. Does this function, norm_rand()
use the same algorithm as rnorm in R or something similar
2008 May 05
1
Is there any way to find out how a certain functions are implemented in R?
Hello
I wrote a bootstrap program in C language that is called and run by R.
When I tried it, it is slow
and I'm trying to write and run the whole thing in C. But I cannot use
handy functions in R and
need to figure out how to write those functions by myself. Is there
any way that I can get the
actual codes that implement functions in R so that I can translate
them into other languages? For
2009 Mar 19
1
object size of a matrix and a list
Hello,
My program calculates several variables at each iteration and some of them are
integers and the rest are numeric. When I save them into a matrix, all of them
are of numeric type, of course.
I'm trying to find a way to save time/memory of my program and I was thinking
that it might help to force some variables to be of integer type and the other
columns numeric type.
But when I
2008 Apr 11
2
system.time gives error when "=" is used for assignment (R-2.6.0)
Hello list,
I found that system.time works correctly when I used "<-" to assign a
value to a variable but when I happened to use "=" instead of "<-", R
gave an error message:
"Error in system.time(your argument here...)". It happened with a few
functions I tried. Is this a bug or is there any circumstances that
"=" cannot be used for
2008 Apr 18
1
R-extension in unix system -- help to locate header files
Hi list,
To call C, I used to use R-extension in windows but I'm moving to unix system
because my PC doesn't have enough memory. My C codes requires to include the
following header files:
#include <stdlib.h>
#include <R.h>
#include <Rdefines.h>
#include <Rmath.h>
#include <R_ext/Applic.h>
#include <R_ext/PrtUtil.h>
In windows, I had no problem with it
2008 Apr 08
1
Using Rtools in Unix environment
The previous mail I wrote was bounced for some reason and I'm writing
it again...
I have used Rtools in windows to call C from R but my computer does
not have enough memory for my current project. So I'm trying to use
Rtools in the high performance computer at my school. The guy who
handles the HPC says it's Unix and I have three questions:
1. I found from the web that Unix has
2008 Mar 05
1
Question on "assign(paste.."
Hello,
I'm having trouble in using "assign(paste ..." command . I could create
several dataframes following trinomial distribution using it but it could
not be used to check their row means of the created dataframe.
For example, the following works:
probTrt=matrix(0,4,3);
probTrt;
#malf, death, normal
probTrt[1,]=c(0.064,0.119,0.817);#for Trt 1
probTrt[2,]=c(0.053,0.125,0.823);#for
2008 Nov 06
1
trouble with for loop
Hello,
I'm having two similar problems with for loop and I would appreciate
any help or comment.
I want to use "for loop" to calculate series of initial values for an
optimization problem. But
some initial values have my function quit due to problems like
calculating the inverse of singular
matrices. I don't want to make my program check determinants and skip it if it
is
2008 Mar 07
1
parameters for lbfgsb (function for optimization)
Can anyone help me with lbfgsb (function for optimization)?
It takes the following parameters:
void lbfgsb (int n, int lmm, double *x, double *lower,
double *upper, int *nbd, double *Fmin, optimfn fn,
optimgr gr, int *fail, void *ex, double factr,
double pgtol, int *fncount, int *grcount,
int maxit, char *msg, int trace, int nREPORT);
What do I put for parameter ex (11th parameter)? I looked at
2008 Jul 25
0
nlminb--lower bound for parameters are dependent on each others
Hello
I'm trying to solve two sets of equations (each set has four equations and
all of them share common parameters) with nlminb procedure. I
minimize one set and use their parameters as initial values of other set,
repeating this until their parameters become very close to each other.
I have several parameters (say,param1, param2) and their constraints are
given as inequality and depend
2008 Jan 07
3
Finding windows DLLs
The XML package relies on libxml2.dll (e.g., bundled with the CRAN
binary) installed in library/XML/libs. Unfortunately,
c:/WINDOWS/system32/libxml2.dll will be found and loaded before
this.
Is there any programatic solution?
Thanks,
Martin
--
Martin Morgan
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109
Location: Arnold
2008 Feb 12
4
assigning NULLs to elements of a list
Dear developers:
I have just came across an (unexpected to me) behaviour of lists when
assigning NULLs to list elements. I understand that a NULL is a valid R
object, thus assigning a NULL to a list element should yield exactly the
same result as assigning any other object. So I was surprised when
assigning a NULL in fact removed the element from the list. Is this an
intended behaviour? If
2008 May 04
1
texi2dvi instead of pdflatex in R2.7.0? and related bioc 2.2 builds
Dear lists:
I am somewhat puzzled by the use of texi2dvi/pdflatex in R2.7.0. When
building EBImage (bioconductor) with 2.7.0 I get the same error both in
Windows and Linux, which reads the following:
** building package indices ...
* DONE (EBImage)
* creating vignettes ... ERROR
/usr/bin/texi2dvi: pdflatex exited with bad status, quitting.
Error in texi2dvi(file = bft, pdf = TRUE, clean =
2007 May 29
1
Use of Rf_duplicate
First, thanks to those of you who responded to my previous post about my
code that was taking longer and longer to process. After following your
suggestions, and I now thinking that the problem was some calls to
Rf_duplicate in my C code.
So I'm hoping I could get some clarification on what Rf_duplicate actually
does. What is the real difference between
PROTECT(y=x); and
PROTECT (y =
2008 Mar 05
1
SEXP size management.
Hi,
Trying to decrease the size of a SEXP variable without reassigning
values individually in a loop.
So far, I've tried using Realloc, as the follow source demonstrates:
SEXP dothis() {
SEXP Rblah;
PROTECT(Rblah = NEW_INTEGER(6));
int* blah = INTEGER(Rblah);
blah[0] = 1;
blah[1] = 2;
blah[2] = 3;
Realloc(Rblah, 3, INTEGER);
UNPROTECT(1);
return(Rblah);
}
According to the
2007 Mar 12
3
reading BMP into R
Um texto embutido e sem conjunto de caracteres especificado associado...
Nome: n?o dispon?vel
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070312/112cd7f9/attachment.pl
2007 May 04
3
decimal values
hello,
how can I do to drop decimal after the comma please for example for tthis line
> print(P)
[1] 62.000000 1.000000 7.661290 5.200000 17.100000 2.318801
how canI do to keep only 62 1 7.66 5.2 17.1 2.32
thanks
__________________________________________________
ble contre les messages non sollicités
[[alternative HTML version deleted]]
2006 Oct 11
2
Compiling R 2.4.0 in ubuntu/linux
I'm not sure if this is the place to post this question, but, I am
having trouble compiling the source code. I do have a suitable C
compiler and f2c but I get this error when I run ./configure
configure: error: --with-readline=yes (default) and headers/libs are
not available
Any ideas? Thanks.
2006 Oct 11
2
Compiling R 2.4.0 in ubuntu/linux
I'm not sure if this is the place to post this question, but, I am
having trouble compiling the source code. I do have a suitable C
compiler and f2c but I get this error when I run ./configure
configure: error: --with-readline=yes (default) and headers/libs are
not available
Any ideas? Thanks.
2007 Feb 21
3
Omiting repeated values
Dear all R users,
Is there any function to omit repeated values in a vector? Your help will be highly appreciated.
Thanks
stat
---------------------------------
Here’s a new way to find what you're looking for - Yahoo! Answers
[[alternative HTML version deleted]]