Description Usage Arguments Examples
same_type()
tests if two objects have the same
type
different_type()
tests if two objects
have different type
1 | same_type(x, y)
|
x |
an R object |
y |
an R object |
1 2 3 4 5 | same_type(letters[1:3], "class") # TRUE
same_type(1:3, "class") # FALSE
different_type(1, 1L) # TRUE
different_type(1, 1.0) # FALSE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.