is_something_in_this_matrix | R Documentation |
This function searches to see if item 'search_for' is within the matrix 'x' and returns a respective TRUE (T) and FALSE (F). This can be useful for adding footnotes, adding conditional text to your document, and much more!
is_something_in_this_matrix(x, search_for)
x |
The matrix that needs to be searched. |
search_for |
Items to be searched for in matrix x. |
TRUE or FALSE
x = data.frame(matrix(1:9, nrow = 3, ncol = 3))
x
is_something_in_this_matrix(x,
search_for = 9)
x = data.frame(matrix(LETTERS[1:9], nrow = 3, ncol = 3))
is_something_in_this_matrix(x,
search_for = "J")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.