Description Usage Arguments Value Examples
Title compare 2 columns values
1 | compare_two_values(data, colName1, colName2)
|
data |
data frame |
colName1 |
first column name |
colName2 |
second column name |
number of times column have different values then condition
1 2 3 4 5 | nobleGasses <- data.frame(Gas=c("Helium","Neon", "Argon", "Krypton", "Xenon", "Radon", "Oganesson"),
Symbol=c("He","Ne","Ae","Kr","Xe","Rn","Og"), Nr=c(2,10,18,36,54,86,118),
Mass=c(4.003,20.18,39.948,83.8,131.293,222,294))
compare_two_values(nobleGasses, "Mass","Nr") # reutrns 7
compare_two_values(nobleGasses,"Nr", "Mass") # reutrns 0
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.