search for: setna

Displaying 5 results from an estimated 5 matches for "setna".

Did you mean: seta
2008 Jul 06
3
Lots of huge matrices, for-loops, speed
...9999", skip = (5 + j), nlines = 1, nmax = cols, quiet=T) values } out1[k,] <- getslice (k) } # Regression for (l in 1:cols) { y <- as.vector (out1 [,l]) if (length (y) > length (na.omit (y))) { setNA <- function (l) { NAs <- rep (NA, length (out3)) NAs } out2[l,] <- setNA (l) } else { regression <- function (l) { model <- lm (as.formula(form)) out...
2011 Mar 30
6
Quick recode of -999 to NA in R
Hi, I am trying to write a loop to recode my data from -999 to NA in R. What's the most efficient way to do this? Below is what I'm presently doing, which is inefficient. Thanks, Chris dat0 <- read.table("time1.dat") colnames(dat0) <- c("e1dq", "e1arcp", "e1dev", "s1prcp", "s1nrcp", "s1ints",
2003 Oct 08
0
is.na(v)<-b (was: Re: Beginner's query - segmentation fault)
Well, that's a convincing argument, but maybe it's the name that's worrying some of us. Maybe it would be more intuitive if called set.na (sorry, I mean setNA). Also "is.na<-" cannot be used to create a new variable of NAs, so is not a universal method, which is a shame for its advocates. I note also that for a vector you can assign a new NA using either TRUE or FALSE: > a <- 1:3 > is.na(a[4])<-F > a [1] 1 2 3 NA Fo...
2007 May 31
0
adehabitat version 1.6
...nt of animals trajects within R: Some functions allow to handle the attributes or the storage of the trajects (typeII2typeI, typeI2typeII, sett0, cutltr, is.regular, is.sd, mindistkeep, offsetdate, set.limits), other allow to manage missing values and test their random distribution in the traject (setNA, summaryNAltraj, plotNAltraj, runsNAltraj), other allow a graphical exploration of the properties of the trajects (hist.ltraj, plot.ltraj, plotltr, sliwinltr). * Several functions now allow to test the independence of the descriptive parameters in the trajects (indmove and wawotest for dx, dy and...
2007 May 31
0
adehabitat version 1.6
...nt of animals trajects within R: Some functions allow to handle the attributes or the storage of the trajects (typeII2typeI, typeI2typeII, sett0, cutltr, is.regular, is.sd, mindistkeep, offsetdate, set.limits), other allow to manage missing values and test their random distribution in the traject (setNA, summaryNAltraj, plotNAltraj, runsNAltraj), other allow a graphical exploration of the properties of the trajects (hist.ltraj, plot.ltraj, plotltr, sliwinltr). * Several functions now allow to test the independence of the descriptive parameters in the trajects (indmove and wawotest for dx, dy and...