Displaying 1 result from an estimated 1 matches for "71hemilton".
2010 Jun 08
2
duplicated() and unique() problems
...() ? Is this an error or is there something I don't
understand.
I have been getting very strage results from duplicated() and unique() in a
dataset I am analysing. Her is a little sample of my real life problem
> str(Masechaba$PROPDESC)
Factor w/ 24545 levels " 06"," 71Hemilton str",..: 14527 8043 16113
16054 13875 15780 12522 7771 14824 12314 ...
> # Create a indicator if the PROPDESC is unique. Default false
> Masechaba$unique=FALSE
> Masechaba$unique[which(is.na(unique(Masechaba$PROPDESC))==FALSE)]=TRUE
> # Check is something happended
> length(whic...