similar to: Redblack tree data structure

Displaying 20 results from an estimated 200 matches similar to: "Redblack tree data structure"

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,
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 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
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()) }
2006 Dec 21
2
data -> data matrix that can be used in regressions
Dear R users, I have spent most of this day figuring out how to read STATA data into R (which eventually worked) and to run a simple OLS regression. It seems that the manuals are written in the most general and abstract way which does not really make it easy to understand what's going on. I'd be glad if somebody could save my day by: telling me how to define a matrix from the
2008 Jul 16
6
vlans+bonding+bridging
hi, I have to configure Xen server and DomU''s which should be able to talk to different vlans - depending on services put on DomU''s. I would like to enslave 2 NICs via bond interface. Both NICs are on trunk ports which are configured in the same way, the same native vlan. I don''t know, if I have to add vlans tagging to eth* interfaces then enslave tagged eth*
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) {
2009 Aug 20
3
No swap on domU
Hi guys. DomU config disk = [ ''phy:/dev/xen00/debian5-base,sda1,w'', ''phy:/dev/xen00/debian5-swap,sda2,w'', ] ----------------------- mkswap /dev/xen00/debian5-swap But in domU in booting: Activating swap...failed. What wrong? -- Best Regards, alex.faq8@gmail.com
2009 Sep 10
22
Xen and Enomaly
Hi list, Right now I''ve to find some graphic (or web!) interface to administrate our new data center infrastructure who will be running over Xen. I''ve been googling around to find something, and looks like Enomaly is a good choice. Can anybody give me some feedback about this? Or maybe recommend another front-end interface? Thanks in advance. Boris.
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
2009 Nov 10
1
swapless pvm
What is the best practice in creating PVm domU''s - with or without swap? >From the admin point of view, especially in HA environment it is temptating not to have a seperate swap partition. Could it be performance issue if swapping to swap-file insted of swap-partition? What about pure swapless- no swapfile, no swap-partition? Any expirence out there? regards Longina -- --
2008 Jul 17
0
bonding+vlan+ bridging old vifs
Hi again, Bonding seems to work with mode =4. I have a strange problem now - can''t get rid of old virtual interfaces which were created on the first start up of xend. Even if I boot machine with xend disabled, I still have old stuff coming up: veth0-veth5, and vif0.0-vif0.3. I would like to configure all networkig manualy first - how can I remove those interfaces, where are they
2008 May 09
1
no network to DomU in Ubuntu Hardy
Hi, I just installed Xen in Ubuntu Hardy. DomU is not accessible either from Dom0 or external network. I used default set up network-bridge/vif-bridge from xend-conf.sxp. Bridge has got default name eth1 which is my default ethernet interface. Before creating DomU: root@jaguar-0:/home/longina# xm list Name ID Mem VCPUs State Time(s) Domain-0
2002 Apr 04
1
[patch] Basic HTTP Proxy Authentication
Hi all, I have put together a patch for supporting "Basic" HTTP Proxy Authentication. The patch changes the interpretation of the RSYNC_PROXY environment variable so that the syntax user:pass@proxy.foo:port may be used instead of just proxy.foo:port (the old syntax is of course still supported). The patch has only been tested lightly, but it should(TM) work. The patch (and
2003 Jul 04
0
Minor probs after upgrade to 3.0.0beta2
Firstly, I am running beta2 as AD member. Auth through Winbind. Upgrading from beta1 to beta2 using RPM on RH 9 I noticed that Winbind will not start and smb will not stop using Init scripts. Seems to me RH9 /etc/init.d/winbind need the "winbind uid" parameter ? Here is the /var/log/samba/log.winbind output. [2003/07/04 13:54:52, 1] nsswitch/winbindd.c:main(811) winbindd version
2001 May 22
2
Inverse Gaussian distribution
I needed to generate some data from the Inverse Gaussian distribution but it is not in R. A google search took me to http://www.maths.uq.edu.au/~gks/s/invgauss.html which contains the documentation for the d, p, r, q functions with a download link of the functions. The functions work fine in R. I am curious why the facilities are not included in R. Is it for legal reasons or just the
2012 Feb 19
3
Non-parametric test for repeated measures and post-hoc single comparisons in R?
Some attribute x from 17 individuals was recorded repeatedly on 6 time points using a Likert scale with 7 distractors. Which statistical test(s) can I apply to check whether the changes along the 6 time points were significant? set.seed( 123 ) x <- matrix( sample( 1:7, 17*6, repl=T ), nrow = 17, byrow = TRUE, dimnames = list(1:17, paste( 'T', 1:6, sep='' )) ) I found
2003 Nov 17
0
Corrupted index files
Hi, I'm playing with Dovecot in a lab environment and got it in state where it crashes on every incoming connection. I moved mail spool from ext2 file system to a ReiserFS on a another disk, mount point changed from /var/vmail to /spool/vmail. After that I managed to open mailbox and I moved about 2000 messages from INBOX to a subfolder. Then I tried to open mailbox with POP3 and it
2013 Feb 02
2
create and save a simulated dataset
Hello, I am trying to learn how to create a simulated dataset of a forest stand: I must simulate 10 stands, for each of the stands I have been creating a random number of trees. For each tree I should create a random diameter. The problem I have is that I cannot use a matrix because the length of the three items is different. I was trying with list but I have no clue on how to make a dataset out