pctin | R Documentation |
Find the percentage of elements in x that are present in y.
x %pctin% y
x |
(Vector) The values to be matched. |
y |
(Vector) The values to be matched against. |
The percentage of elements in x that are present in y.
https://stackoverflow.com/a/13830068/5578429
c(1, 4, 21, 7, -3) %in% 0:10
#> [1] TRUE TRUE FALSE TRUE FALSE
c(1, 4, 21, 7, -3) %pctin% 0:10
#> [1] 0.6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.