roject.org
Subject: Re: [R] Unique in discerning missing values NA
Hello,
Your data example is difficult to read into an R session. Next time, post the
output of ?dput. Like this:
dput(menPatients[1:40, 1]) # post the output of this
The help page for unique says that "Missing values are re
Hello,
Your data example is difficult to read into an R session. Next time,
post the output of ?dput. Like this:
dput(menPatients[1:40, 1]) # post the output of this
The help page for unique says that "Missing values are regarded as
equal" so you should expect one NA to still be present i
Hi,
testUnique <- unique(testData[!is.na(testData)])
or
testUnique <- unique(na.omit(testData))
And probably some other solutions.
Regards,
Pascal
2013/7/5 Pancho Mulongeni
> Hi,
> I am trying to remove duplicate Patient numbers in a clinical record, I
> used unique
> menPatients[1:40,1]
>
Hi,
I am trying to remove duplicate Patient numbers in a clinical record, I used
unique
menPatients[1:40,1]
[1] abr1160(C)/001 ABR1363(A)/001 ABR1363(A)/001 ABR1363(A)/001 abr1772(B)/001
[6] AFR0003/001AFR0003/001afr0290(C)/001 afr1861(B)/001 Aga0007/001
[11] AGA1548(A)/001 AGA1548(A)
4 matches
Mail list logo