similar to: NAs are not allowed in subscripted assignments

Displaying 20 results from an estimated 400 matches similar to: "NAs are not allowed in subscripted assignments"

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 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
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 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
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) {
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*
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.
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
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
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
2008 Jul 24
2
NAs - NAs are not allowed in subscripted assignments
Dear List, I ran into some trouble handling missing values. Assume 2 vectors (numeric) including NAs a <- c(rep(seq(1,4),4),NA,NA) b <- c(sample(1:2,14,replace=T),NA,NA,1,2) I want to replace the values of vector a that are smaller than 2 and larger than 3 into NAs only in case vector b equals 1 a[b==1][a[b==1]<2 | a[b==1]>3] <- NA The following error accurse: NAs are not
2005 Apr 03
1
Error: NAs are not allowed in subscripted assignments: change from R.1.9
Hi, There seems to be a change in 2.0.1 in the workings of subscript assignments with missing values. # This is R.2.0.1 # assignment w/ missing index doesn't work when right-hand-side is a matrix. It did work in 1.9.1 > x = matrix(1, 2, 2); x[c(1,NA),] = x Error: NAs are not allowed in subscripted assignments # it does work for a vector > x = matrix(1, 2, 2); x[c(1,NA),] = 1 Is this
2008 Jun 25
0
subscripted assignments errormessage in gap.boxpot
I am trying to create a boxplot that has a gap with different scales so that my boxes actually show (compare attachments). I have referred to the help pages for gap.boxplot, gap.plot, list with no luck so far. Here is my script and the resulting error message: # Import *.csv files containing areas for each CLI class cli3<-read.table("F:\\Megan\\cli3.csv", header=TRUE,
2010 Apr 09
3
NAs are not allowed in subscripted assignments
I'm trying to assign NAs to values that satisfy certain conditions (more complex than shown below) and it gives the right result, but breaks the loop having done the first one viz: new<-c(rep(5,4),6) for (i in 1:6) {new[new[i]>5.5][i]<-NA} gives the correct result, though an error message appears which causes a break if it's in a loop. If I can get rid of the error message and