similar to: Getting wrong NA values using "for" cmd

Displaying 6 results from an estimated 6 matches similar to: "Getting wrong NA values using "for" cmd"

2005 Dec 05
5
What is wrong with this FOR-loop?
Hi, I have a more complex example, but the problem boils down to this FOR-loop not filling in the res-matrix run_rows<-seq(0,1,0.05) run_cols<-seq(0.3,0.6,0.05) res<-matrix(NA,length(run_rows),length(run_cols)) for(i in run_rows) { for(j in run_cols) { res[i,j]=i+j #niether the above, nor res[[i,j]]=i+j work, why? } } Thank you, Serguei
2011 Feb 10
3
help - "the condition has length > 1 and only the first element will be used"
Hello there, I don't know if I'm addressing my question to the right e-mail address, I hope I do. Actually I have a little problem concerning writing a code in R. I try to briefly sum up my problem. As you can see below, I created the functions "Equation1" and "Equation2" with some conditions. Equation1 <-function(x){ if
2000 Feb 14
2
Error report on empty matrices (PR#435)
Dear R developers: When using R.0.99a (Version 0.99.0 Patched (February 9, 2000), source compiled with gcc under SuSE 6.2) on a PIII 500Mhz Machine under SuSE 6.2 Linux I found the following bug: x <- matrix(0,10,0) rbind(x,2) causes an R-crash with the message "Gleitkomma-Ausnahme" (floating point exception) which is probably due to the non-applicability of the recyling
2010 Jan 25
1
Bug#566012: xen-hypervisor-3.2-1-i386: Another crash. Is this a hypervisor-problem, or is this the kernel?
Package: xen-hypervisor-3.2-1-i386 Version: 3.2.1-2 Followup-For: Bug #566012 Just had another crash. I got the output from a serial console. The kernel doesn't say anything though. (XEN) traps.c:1996:d6 Domain attempted WRMSR 00000400 from 00000000:0000ffff to ffffffff:ffffffff. (XEN) traps.c:1996:d6 Domain attempted WRMSR 00000404 from 00000000:00018000 to ffffffff:ffffffff. (XEN)
2009 Dec 14
0
Confused on using expand.grid(), array(), image() and npudens(np) in my case
Hi all, I want to use the npudens() function in the np package (multivariate kernel density estimation), but was confused by the several functions in the following codes,expand.grid(),array(),image() and npudensbw(). This confusion will only be generated in >=3 dimensions. I marked the four places with confusion1-4. I think there should be some kind of correspondence in those four
2006 Feb 20
0
crashed would be solved by sudo ?
Hi all, Most of time I like to try out wine with game console emulators which use fare amount of d3d or opengls, to see how much wine supports on this. Suddenly today that the wine does not work with any emulator I have tried with, came up with error message that is followed. But I accidentally found a workround that with ``sudo'', the problem won't occor. Any idea ?