Description Usage Arguments Examples
same_length()
tests if two objects have same
length
different_length()
tests if two objects
have different length
1 | same_length(x, y)
|
x |
a matrix |
y |
a matrix |
1 2 3 4 5 6 7 8 9 10 | same_length(1:10, letters[11:20]) # TRUE
same_length(1:10, letters[11:19]) # FALSE
a = matrix(1:15, 5, 3)
same_length(a, a) # TRUE
same_length(a, t(a)) # TRUE
different_length(t(a), a) # FALSE
different_length(1:10, a) # TRUE
different_length(a, "a") # TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.