search for: reclas

Displaying 4 results from an estimated 4 matches for "reclas".

Did you mean: recla
2008 Jun 27
4
Recoding
...ecode() in car) to get v2 as c(1001,1001,1001,1002,1003,4,1001,10,1003) ? I'm using myself a function based on match() since long ago (I think that thanks to advice by Prof. B. Ripley), but would like to know if there is an standard function (i.e., like recode()). What I'm using is: "reclas" <- function(v, origen, imagen, directo = T, resto=1) { if(directo == F) { aux <- origen origen <- imagen imagen <- aux } m <- match(v, origen, 0) #print("match finished") if(resto...
2001 Aug 30
1
imagenrgb: Function to display RGB images in R
...rmats vector of color codes as (m,n) matrix: dim(cols) <- c(n,m) cols <- t(cols) #Generates vector of unique colors: cols.unicos <- unique(cols) #(Assigns an integer code to each unique color and transforms the #char color matrix into an integer matrix): cols <-as.numeric(reclas(cols,cols.unicos,1:length(cols.unicos)),drop=F) dim(cols) <- c(m,n) #4.Display or save if(ver) imagen(cols,col=cols.unicos) else list(ima=cols,cols=cols.unicos) } Functions called: > rescale function(vector, oldmin = min(vector), oldmax = max(vector), newmin = 0, newmax = 255) {...
2001 Sep 27
2
Getting your stuff organized in R
...uot;edges" "ima.explore2" [4] "imagen" "imagenrgb" "lsf" [7] "mat.select" "no.na.mat" "no.rep.mat" [10] "parcelas.lda" "parcelas.liss.func" "reclas" [13] "rescale" "utm2lincol" You can use lsf() to save your functions to a file: > save(list=lsf(), file="Rfunctions.rda") 9. Actually, it's more usual to save functions in text format, which you can do with: > dump(list=lsf(),file=&quot...
2010 Nov 08
4
2.0, hourly performance stats
I'm getting constantly high numbers of page reclaims & involuntary context switches for dovecot/auth. page reclaims = minor faults = cpu switching back to system-mode, But why is the auth process doing that so excessively? Same for the large number of involuntary context switches... Attached is my "dovecot -n" output. Date: Sun, 07 Nov 2010 20:40:34 +0100 type real