search for: philosof

Displaying 7 results from an estimated 7 matches for "philosof".

2009 Dec 07
2
outputting functions in lapply
...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, 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 1000 * www.sdu.dk
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 1000 * www.sdu.dk
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. Winsl?wsvej 9, 5000 Odense C SYDDANSK UNIVERSITET _______________________________________________________________ * Campusvej 55 * 5230 * Odense M * 6550 1000 * www.sdu.dk
2009 Jan 08
1
NAs are not allowed in subscripted assignments
...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 help(Extract). What am I missing? I can see no ambiguite as to what the result of those commands should be (j == c(2,2,NA)). -- Med venlig hilsen Rune Schjellerup Philosof Videnskabelig Assistent, Statistik, SDU Telefon: 6550 3607 Email: rphilosof at health.sdu.dk Adresse: J.B. Winsl?wsvej 9, 5000 Odense C
2009 Aug 07
1
eval parent.frame() twice
...) { a <- 3 obj <- list(call=expression(a)) second(obj) } second <- function(obj) { eval(evalu(obj), parent.frame()) } first() #returns 2, but I want 3. How do I change 'second' such that the value of 'a' from 'first' is returned? -- Regards Rune Schjellerup Philosof Ph.d.-studerende, Statistik, IST, SDU Telefon: 6550 3607 E-mail: rphilosof at health.sdu.dk Adresse: J.B. Winsl?wsvej 9, 5000 Odense C
2009 Aug 10
1
multicore mclapply hangs
When I execute mclapply it creates the needed processes, but these processes never begin computing anything, they just wait indefinitely. I recently upgraded to version 2.9.1, which might have caused the problem. -- Med venlig hilsen Rune Schjellerup Philosof Ph.d.-studerende, Statistik, IST, SDU Telefon: 6550 3607 E-mail: rphilosof at health.sdu.dk Adresse: J.B. Winsl?wsvej 9, 5000 Odense C
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) {