compare2 | R Documentation |
compare2()
is a function that prints two columns of interest from a data
frame side by side, for a quick visual row-wise comparison.
compare2(data, column1, column2)
data |
The data frame in question. |
column1 |
The first column to compare. |
column2 |
The second column to compare. |
The two selected columns printed in the console.
compare2(mtcars, 'cyl', 'mpg')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.