locate | R Documentation |
Searches for the path(s) and name of package data file(s).
locate(x, ...)
## Default S3 method:
locate(x, file, path, package, keywords, full.names = TRUE, ...)
x |
Not used. |
... |
Not used. |
file |
Character string(s) specifying the files, including regular expressions, to search for in the file name. |
path |
Character string specifying the file path to search. |
package |
Character string specifying the package name. |
keywords |
Character string specifying keywords that the path and file names must contain. |
full.names |
Logical value specifying whether to return the path names along with the file names. |
Character vector.
locate(default)
: Default function to locate data files.
grep
## Not run:
locate(package = "gulf.data", file = "species.csv")
locate(package = "gulf.data", file = "*.csv")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.