Displaying 20 results from an estimated 200 matches similar to: "multicore mclapply hangs"
2009 Dec 07
2
outputting functions in lapply
How come the k is 3 in all of this output?
I expected it to be equal to r.
> tmp3 <- lapply(1:3, function(k) function(r) print(paste(r, "<- r | k
->", k)))
> for (i in 1:3) { tmp3[[i]](i) }
[1] "1 <- r | k -> 3"
[1] "2 <- r | k -> 3"
[1] "3 <- r | k -> 3"
--
Med venlig hilsen
Rune Schjellerup Philosof
Ph.d-stipendiat,
2009 Aug 07
1
eval parent.frame() twice
Hi
I want to use a function (update) that in its body uses
eval(call, parent.frame())
I would like to use this function in a function that does not contain
the variables referred to in 'call'. Those variables are instead in the
parent.frame() of my function (named 'second' below)
Like this:
a <- 2
evalu <- function(obj) {
call <- obj$call
eval(call, parent.frame())
}
2010 Mar 12
1
Creating named lists
I often find myself making lists similar to this
list(var1=var1, var2=var2)
It doesn't seem list has an option, to make it use the name of the
variable as name in the list.
Is there another function that does this?
--
Med venlig hilsen
Rune Schjellerup Philosof
Ph.d-stipendiat, Forskningsenheden for Biostatistik
Telefon: 6550 3607
E-mail: rphilosof at health.sdu.dk
Adresse: J.B.
2009 Jan 08
1
NAs are not allowed in subscripted assignments
Browse[1]> j <- c(1,2,NA)
Browse[1]> j[j==1][-1]
[1] NA
Browse[1]> j[j==1][-2]
[1] 1
Browse[1]> j[j==1][-2] <- 2
Error during wrapup: NAs are not allowed in subscripted assignments
As far as I can see, I have no NA in the lhs (not after the second
subscript anyway).
Besides, I have a single value on the rhs, so it should be allowed to
have NAs in the lhs, according to
2009 Sep 04
1
Redblack tree data structure
I need to use a red-black tree, which package provides that data structure?
--
Best regards
Rune Schjellerup Philosof
Ph.d-stipendiat, Forskningsenheden for Biostatistik
Telefon: 6550 3607
E-mail: rphilosof at health.sdu.dk
Adresse: J.B. Winsl?wsvej 9, 5000 Odense C
SYDDANSK UNIVERSITET
_______________________________________________________________
* Campusvej 55 * 5230 * Odense M * 6550
2005 Nov 07
3
R thread safe
Dear R-dev,
I would like to accelerate my R computation by using parallel OpenMP compilers
(e.g from Pathscale) on a 2-processor AMD server and I would like to know
whether R is a tread safe library. The main kernel of the OpenMP
parallelization is a C SEXP function that performs the computational routine in
parallel with:
*******************
SEXP example(SEXP list, SEXP expr, SEXP rho)
{
2013 Feb 09
3
help on plotting series with different x-axis values on a graph with one x-axis
Hi,
I have run into this problem a couple of times now and hope you can help!
If I want to plot mulitiple series with differing x-axis values (however, all in the same range) in 1 plot with one common axis R obstruses the plots.
E.g. if I plot water content against time and I start with the sampler at 5 cm depth, it plots that one right.
But the next depth, 15 cm, is measured at slightly
2006 Aug 04
2
plotting picture data
Hi R users
I have a dataset which represents points that are market by patients as the
source of pain.
Basically the patients indicates by a cross on a chest pictures where he/she
thinks is the
source of pain. The data was then digitalized by divinding the chest into
small squares and each
square was give value 1 if it was the center 2 if it was touched by the
markings and 3 if it was not
2007 Mar 23
2
concatenate 2 data.frames
Dear all,
I would like to know how can I concatenate 2 data.frames into a single one. Both data frames have the same number of columns and the same class type in each correspondent column. So what I want is to have a new data.frame where I have first the values from one data.frame and then the values from a second data.frame would came after in this new data.frame.
Thanks in advance.
Med
2007 Mar 30
1
Model comparison
Dear all,
I would like to know if I can compare by a significance test 2 models with different kind of parameters. Perhaps I am wrong but I think that we can only compare 2 models if one is a sub model of the other.
Med venlig hilsen / Regards
João Fadista
Ph.d. studerende / Ph.d. student
AARHUS UNIVERSITET / UNIVERSITY OF AARHUS
Det Jordbrugsvidenskabelige Fakultet / Faculty of
2008 Jul 04
2
experinental revision of the 'snow' package
A new version of the 'snow' package for parallel computing in R is
available at
http://www.stat.uiowa.edu/~luke/R/cluster/snow_0.3-3.tar.gz
This substantially revises the way in which worker processes are
started to allow snow to be used on Windows and Mac/Windows/Linux
combinations. I have successfully used the SOCK version on a
standalone Windows machine and combinations of
2007 Sep 07
2
ploting missing data
Hello,
I have this kind of dataframe and have to plot it.
data <- data.frame(sw= c(1,2,3,4,5,6,7,8,9,10,11,12,15),
zehn =
c(33.44,20.67,18.20,18.19,17.89,19.65,20.05,19.87,20.55,22.53,NA,NA,NA),
zwanzig =
c(61.42,NA,26.60,23.28,NA,24.90,24.47,24.53,26.41,28.26,NA,29.80,35.49),
fuenfzig =
2007 Jun 11
3
simultaneous computing
Hello,
which possibilities are available in R for simultaneous or parallel
computing?
I only could find biopara
(http://cran.r-project.org/src/contrib/Descriptions/biopara.html)
Are there other possibilities?
Are there special groups working on simultaneous computing with R?
Thanks
Markus
--
Dipl.-Tech. Math. Markus Schmidberger
Ludwig-Maximilians-Universit?t M?nchen
IBE - Institut f?r
2008 Oct 08
5
ParallelR
Anyone using or has access to ParallelR? I was looking at the page and
found nothing really useful!
http://www.revolution-computing.com/sitegenius/topic.php?id=195
I want to see if I can run R on a cluster of workstation, and use
batch systems like Grid Engine or Xgrid:
http://gridengine.sunsource.net/
http://ww.apple.com/acg/xgrid/
--Chi
2008 Feb 25
1
Parallel R for dummies (on hpc)
Hi,
I had access to an hpc cluster, and wanted to parallelize some of my R code. I looked at the snow,nws, rscalapack documentation but was unable to make out how I should submit my job to the hpc, and how I should code a simple program. For example, if I had 10 matrices, and 10 processor how should I write the R (and the hpc submit code) so that I run the calculations (e.g. rowsums) for each
2008 Jun 02
4
exit function in R?
Hi,
This is likely an stupid question, but I cannot find the solution.
I am searching for an "exit" function, to end the execution of an R
script if some condition is not filled.
Any clue?
Thank you in advance!
Federico
2008 Oct 22
1
torque/psb & snow library
Hello all;
I'm trying to execute parallel jobs trough library snow on a cluster built
through torque/PSB. I'm succesfully obtaining the cluster with:
>system("cat $PBS_NODEFILE > cluster.txt")
>mycluster <- scan(file="cluster.txt",what="character")
>cl <- makeSOCKcluster(mycluster)
The only problem, at the moment, is that if I use
2008 Mar 20
1
Rmpi and C Code, where to get the communicator
Hello,
I try to write parts of my code in C to accelerate the for-loops. But
basic operations I want to do in R (e.g. start cluster). My R code looks
something like this:
library(Rmpi)
mpi.spawn.Rslaves()
mpi.remote.exec(....)
dyn.load("test.so")
erg <- .Call("test", ....)
....
mpi.close.Rslaves()
mpi.quit()
And my C function looks something like this:
#include
2008 Oct 22
1
Problem about spawn nodes with Rmpi
Hi all,
now I'm testing R in a "virtual cluster", made it with VirtualBox. This one
has 3 nodes, running CentOS 5 and OpenMPI 1.2.8, and the principal node
(called "server") exports the /home to other nodes.
I have installed R and OpenMPI in /home, in fact, it seems work OK. Editing
the openmpi-default-hostfile and run "mpirun -np 3 hostname" I can see the
2008 Sep 08
1
cluster/snow question
Dear R Users,
I am attempting to use the snow package for clustering. Is there a way to
identfy, in the environment of each node, a rank for that node and also,
the total size of the cluster ?
By way of analogy, I am looking for the functions in snow equivalent to
mpi.comm.rank() and mpi.comm.size() from RMPI, in case that makes things
clearer.
Thanks in advance,
Tolga
Generally, this