Displaying 20 results from an estimated 120 matches similar to: "2D random walk with traps convert C++ code to R code"
2009 Aug 04
0
Writing a NetCDF file in R
Dear all,
I am attempting to convert 10 NetCDF files into a single NetCDF file, due to the data input requirements of a model I hope to use. I am using the ncdf package, version 1.6. The data are global-scale water values, on a monthly basis for 10 years (ie. 120 months of data in total; at present the data are separated by year, with 12 months of data in each file - mrunoff_1986 through to
2009 Aug 05
0
ncdf package problem - put.var.ncdf
Dear all,
I am attempting to convert 10 NetCDF files into a single NetCDF file, due to the data input requirements of a model I hope to use. I am using the ncdf package, version 1.6. The data are global-scale water values, on a monthly basis for 10 years (ie. 120 months of data in total; at present the data are separated by year, with 12 months of data in each file - mrunoff_1986 through to
2011 Apr 22
1
ggplot
Hello everyone,
I am using ggplot
to plot but I am getting the following error which I do not understand
Error: geom_text requires the following missing aesthetics: label
My code is
dimx<-256
library(ggplot2)
dev.new()
xandy<-expand.grid(seq(1:dimx),seq(1:dimy))
xx<-data.frame(xandy[[1]],xandy[[2]],Powermap=Powermap)
subsetxx<-subset(xx, xx$Powermap>threshold)
2011 Feb 17
0
Multi-response MCMCglmm (gaussian and zapoisson)
Dear MCMCglmm users,
I am currently struggling with the specification of a proper prior and model formula for a multi-response MCMCglmm with two of the three response variables being Gaussian and the third being za-poisson. The model includes several fixed effects and three nested random effects.
In general, I would prefer to fit a model with a fixed effect of trait and suppressed intercept for
2010 Nov 05
0
NaN, ncdf
Dear All,
Can anyone please let me know how exactly ncdf deals with NaN.
I am trying to pass in a vector of data that has some NaN in it, into a variable in NetCDF.
dimX <- dim.def.ncdf("X","count",(1:6))
dimY <- dim.def.ncdf("Y","count",(1:3))
var1 <-
2010 Sep 06
0
How R converts data between objects
Hello everyone.
I would kindly request your help concerning how R converts data between
different structrures.
In the following example please keep attention on the following two
1)
I create
f <- GaussRF(x=x, y=y, model=model, grid=TRUE,param=c(mean, variance, nugget,
scale, alpha))
with
image(x,y,f)
and
image(f)
I get exactly the same image.
then
2)I try to store f inside a raster
1998 May 29
0
aov design questions
R developers,
I have a first attempt to make an aov function. Eventually I want to
build in Error() structure, but first I am trying to get this
presentable for balanced data with only a single stratum, just using
residual error. I am following R. M. Heiberger's Computation for the
Analysis of Designed Experiments, Wiley (1989)
I a using a wrapper (aov.bal) to call the
2002 Jul 27
1
Working with lists
Greetings All,
I'm stuck and would appreciate some help.
After writing a function to generate a random sample from vector
"rand1":
> f<-function(i) {y<-sample(rand1,296,replace=F)}
and using the function to generate multiple samples from rand1 and store
the results in list "l":
> l<-lapply(1:100,f)
I can't get the next step accomplished; I'd like
2011 Mar 30
4
a for loop to lapply
Dear all,
I am trying to learn lapply.
I would like, as a test case, to try the lapply alternative for the
Shadowlist<-array(data=NA,dim=c(dimx,dimy,dimmaps))
for (i in c(1:dimx)){
Shadowlist[,,i]<-i
}
---so I wrote the following---
returni <-function(i,ShadowMatrix) {ShadowMatrix<-i}
lapply(seq(1:dimx),Shadowlist[,,seq(1:dimx)],returni)
So far I do not get same results
2011 Dec 14
0
hclust and ggplot2
I saw an example online of taking hclust dendrogram and plotting it using
ggplot2 and thought I would give it a try to see what it would look like. I
get an error when trying to use ggplot; Error: ggplot2 doesn't know how to
deal with data of class phylo. Regular plot works fine but I can't get
ggplot2 to work.
see code below....
rows=100
columns=100
#create matrix
2011 Apr 27
6
Assignments inside lapply
Dear all I would like to ask you if an assignment can be done inside a lapply statement.
For example
I would like to covert a double nested for loop
for (i in c(1:dimx)){
for (j in c(1:dimy)){
Powermap[i,j] <- Pr(c(i,j),c(PRX,PRY),f)
}
}
to something like that:
ij<-expand.grid(i=seq(1:dimx),j=(1:dimy))
unlist(lapply(1:nrow(ij),function(rowId) { return
2011 Apr 09
1
For->lapply->parallel apply
Dear all,
I would like to ask your help understand the subsequent steps for making my program faster.
The following code:
Gauslist<-array(data=NA,dim=c(dimx,dimy,dimz))
for (i in c(1:dimz)){
print(sprintf('Creating the %d map',i));
Gauslist[,,i]<-f <- GaussRF(x=x, y=y, model=model, grid=TRUE,param=c(mean,variance,nugget,scale,Whit.alpha))
}
creates 100 GaussMaps (each
2012 Jun 19
1
R and C pointers
Dear R devel,
Apologies for these (most probably trivial) questions, doing my first
attempt to call C from R (and actually learning C in the process).
I need to pass a matrix to C, and after reading R-exts.pdf (many
times), I was unable to find how to handle matrices at C-level...
except for, what probably is the answer, that matrices are in fact
vectors with dimensions.
This is a sample code I
2008 May 14
6
PWGL in wine, problems
Hello,
I'm new on this list. First of all, thank you to all the developers of this
great project!
At the moment there is only an application that keeps me on both macos and
windows, its name is PWGL a free environment for computer assisted
composition in openGL. (http://www2.siba.fi/PWGL/)
I'm running Ubuntu 8.04 and wine 0.9.59.
I have to say that I also installed vcrun2005 and
1999 Oct 18
0
Date/time of formation of objects
Hi
Is there any way of attaching the date and time of formation of an object
so that ls() can report such things in a manner similar to the Unix ls
command? And/or a comment attached? Could this be added to the
housekeeping wish-list?
I usually use my own little command lls() (below) that reminds me of the
mode and size of a structure since I often have R sesssions open for days
at a time.
2014 Nov 24
0
Error "promise already under evaluation ..."
> The above question still stands, but otherwise, I overlooked the most
> obvious solution:
>
> dim_1 <- function(x) dim(x)
>
> Unit: nanoseconds
> expr min lq mean median uq max neval cld
> dim(x) 0 1 72.941 1 1 2696 1000 a
> base::dim(x) 11549 13474 15105.950 14245 15399 60824
2014 Oct 16
2
[LLVMdev] RFC: Should we have (something like) -extra-vectorizer-passes in -O2?
----- Original Message -----
> From: "Chandler Carruth" <chandlerc at google.com>
> To: "Zinovy Nis" <zinovy.nis at gmail.com>
> Cc: "Hal Finkel" <hfinkel at anl.gov>, "James Molloy" <james at jamesmolloy.co.uk>, "LLVM Developers Mailing List"
> <llvmdev at cs.uiuc.edu>
> Sent: Thursday, October 16, 2014
2007 Feb 28
1
(XEN) Assertion ''!((irq_stat[(((get_cpu_info()->processor_id)))].__local_irq_count) != 0)'' failed at traps.c:918
For the last several days, I''ve been getting the attached crash
whenever I reboot Dom0. Anybody else seeing it?
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2007 Apr 20
1
Sending snmp traps from a serial ups
Hello,
I want to poll ups information (status, load, temprature etc.) from a Linux
server with snmp. The ups is connected with a serial cable and I'm using
nut.
It is possible to transfer Information from ups nut to the linux smnpd
(with some scripts?) and to make some extention to the mib database.
I know, my question is not ups nut related.
Mit freundlichen Gr??en / Best regards
Markus
2008 Jan 18
0
Upgrading to Asterisk 1.4 :: Avoiding the hidden traps
In my series of articles about Asterisk 1.4, I've added a checklist
for those of you upgrading to 1.4 from 1.2.
As always, I appreciate feedback on important things I've forgotten...
http://www.voip-forum.com/category/asterisk/asterisk14/
Have a nice weekend!
/Olle