To check if the column values have 90 percent overlap, we can use the dplyr
package in R. Here is an example code block showing how to accomplish this:
main.r584 chars18 lines
In this example, we have created a sample data frame with three columns. We then used dplyr
to calculate the percentage overlap in values between each pair of columns. Finally, we checked if any pair of columns had less than a 90% overlap using an if
statement.
gistlibby LogSnag