prop.unequal | R Documentation |
Compares the first element in vector x
to the first element in vector
y
, the second element in x
to the second element in y
,
and so forth, and returns the proportion of elements which are not equal.
prop.unequal(x, y, na.rm = FALSE)
x |
First vector to be compared |
y |
Second vector to be compared |
na.rm |
a logical value indicating positions should be excluded if they
are |
numeric value that is proportion of corresponding elements that are not equal.
prop.unequal(c(1,2,3), c(1,3,3)) prop.unequal(c(1,2,3), c(1,3,NA)) prop.unequal(c(1,2,3), c(1,3,NA), na.rm=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.