Generic class finder
Arguments
- classy
A class of object (character string, e.g. 'Fleet')
- package
Optional. Names(s) of the package to search for object of class
classy. String Default is allopenMSEpackages. Always searches the global environment as well.- msg
Print messages?
- abc
Logical, whether to alphabetize the results. By default, the function returns results found in the global environment, then core openMSE packages, and any additional packages in argument
package.
Examples
avail("OM", msg=FALSE)
#> [1] "testOM"
Stocks <- avail("Stock")
#> → Searching for objects of class "Stock" in package "MSEtool"
Fleets <- avail("Fleet")
#> → Searching for objects of class "Fleet" in package "MSEtool"
MPs <- avail("MP")
#> → Searching for objects of class "MP" in package "MSEtool"
