> -Original Message-
> From: Erik Wright [mailto:eswri...@wisc.edu]
> Sent: Sunday, April 11, 2010 1:59 PM
> To: William Dunlap
> Cc: r help
> Subject: Re: [R] .Call function crashes initializing matrix
>
> Hi Bill,
>
> You were right, thanks!
>
&
Hi Bill,
You were right, thanks!
Now I have:
int size = 5000;
double *matrix = (double *) R_alloc(size^2, sizeof(double));
Which works for larger sizes! But now I have discovered a new problem with it.
When I go to set the value of the elements it *sometimes* crashes:
for (i = 0; i < (size
> -Original Message-
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Erik Wright
> Sent: Saturday, April 10, 2010 3:23 PM
> To: r help
> Subject: [R] .Call function crashes initializing matrix
>
> Hello,
>
> I have a C function that I call from R
sdlywjl666 wrote:
>
> Dear all,
> What is the usage of the ".Call()"?
> What is the meaning of the follows:
>
> S=.Call("RS_fractal_spectral_density_function_direct",x,as.vector(taper.),as.logical(center),as.logical(recenter),TRUE,as.integer(npad),COPY=rep(FALSE,6),CLASSES=c(rep("matri
Thanks Matthias and Gabor. You're both right. Matthias, I think that *was*
what I read although now I realize that Gabor's suggestion is more along the
lines of what I want to do. Though I have found one situation where this
wouldn't really work properly:
par(mfrow=c(2,2))
plot(rnorm(10))
plot(
Hi Jake,
are you looking for argument "panel.first" of "plot.default"?
?plot.default
panel.first: an expression to be evaluated after the plot axes are set
up but before any plotting takes place. This can be useful
for drawing background grids or scatterplot smooths.
hth,
Mat
See:
?frame
e.g.
setHook("plot.new", function(...) cat("Starting plot\n"))
On Mon, Apr 28, 2008 at 9:22 AM, Jake Michaelson
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I would like to be able to call a custom function automatically before
> plot.new() is called (more specifically, before a new pl
7 matches
Mail list logo