search for: notsorted

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

2008 Jul 01
1
[.data.frame speedup
...ULL # Do not want to check for duplicates if don't need to noDuplicateRowNames <- (is.logical(i) || (!is.null(attr(x, "dup.row.names"))) || (is.numeric(i) && min(i, 0, na.rm=TRUE) < 0) || (!notSorted(i, strict = TRUE))) if (!missing(j)) { x <- x[j] cols <- names(x) if (drop && length(x) == 1L) { if (is.character(i)) { rows <- attr(xx, "row.names") i <- pmatch(i, rows, duplicates.ok = TRUE) } xj <- .subset2(.subset(...
2013 Jan 03
1
Survey package help with svystandardize
...s, (!is.na(agegr5) & !is.na(sex) & ! is.na(rfsmok))) stdes<-svystandardize(testing_dataset, by=~agegr5, over=~sex, population=popage) ------------------------- SUDAAN code: PROC DESCRIPT DATA = "h:\\brfss_data\\brfss11\\pudf11\\txbrfss_pudf11" DESIGN = WR FILETYPE= SUDXPORT NOTSORTED; NEST STSTR SEQNO/MISSUNIT; WEIGHT LLCPWT; SETENV LINESIZE = 106 PAGESIZE = 45 COLWIDTH = 11 TOPMGN = 1; VAR RFSMOK; CATLEVEL 2; STDVAR AGEGR5; STDWGT .128810 .182648 .219077 .299194 .170271; SUBGROUP SEX AGEGR5; LEVELS 2 5 ; TABLES (SEX); [[alternative HTML version deleted]]
2010 Nov 23
6
the first. from SAS in R
Is there any similar function in R to the first. in SAS? What it dose is: Lets say we have this table: a b c 1 1 5 1 0 2 2 0 2 2 0 NA 2 9 2 3 1 3 and then I want do to do one thing the first time the number 1 appers in a and something else the secund time 1 appers in a and so on. so something similar to: if first.a { a$d<-1 }else{ a$d<-0 } This would give me