search for: numna

Displaying 3 results from an estimated 3 matches for "numna".

Did you mean: numa
2019 Jan 21
0
orderVector1 (sort.c): Tiny improvement concerning nalast
...RSXP: ! for (i = 0; i < n; i++) isna[i] = (sx[i] == NA_STRING); ! break; case CPLXSXP: ! for (i = 0; i < n; i++) isna[i] = ISNAN(cx[i].r) || ISNAN(cx[i].i); ! break; default: ! UNIMPLEMENTED_TYPE("orderVector1", key); } ! for (i = 0; i < n; i++) numna += isna[i]; if(numna) switch (TYPEOF(key)) { --- 1079,1111 ---- switch (TYPEOF(key)) { case LGLSXP: case INTSXP: ! for (i = 0; i < n; i++) { ! isna[i] = (ix[i] == NA_INTEGER); ! numna += isna[i]; ! } ! break; case REALSXP: ! for (i = 0; i < n; i++){ !...
2006 Jul 28
1
(no subject)
Dear R-Helpers, I have a large data matrix (9707 rows, 60 columns), which contains missing data. The matrix looks something like this: 1) X X X X X X NA X X X X X X X X X 2) NA NA NA NA X NA NA NA X NA NA 3) NA NA X NA NA NA NA NA NA NA 5) NA X NA X X X NA X X X X NA X .. 9708) X NA NA X NA NA X X NA NA X .and so on. Notice that every row has a varying number of entries, all rows
2015 Jun 19
4
Sobre data.table
Hola, ¿qué tal? ¿Y por qué no, simplemente, sapply(mi.data.table, function(x) sum(is.na(x)))? Un saludo, Carlos J. Gil Bellosta http://www.datanalytics.com El día 19 de junio de 2015, 14:44, Olivier Nuñez <onunez en unex.es> escribió: > Si te devuelve 0 para todas las columnas es que no hay NA's. > Tal vez son caracteres igual a "NA". > Para asegurarte de ello,