View source: R/searchObjectForValue.R
searchObjectForValue | R Documentation |
Search for value in complex R objects
searchObjectForValue(obj, value, show_output = FALSE)
obj |
['R object'] R object for which we search for 'value'. |
value |
['numeric(1L)|character(1L)'] Value which which for which 'obj' is searched through. |
show_output |
['logical(1L)'] Show log (default 'show_output = FALSE'). |
obj = lm(Petal.Length ~ ., data = iris) lfound = searchObjectForValue(obj, iris$Sepal.Length[1]) # Get values found: lapply(lfound$found, function(l) eval(parse(text = l)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.