mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-12-16 17:42:10 +01:00
31 lines
520 B
Markdown
31 lines
520 B
Markdown
|
|
# List dataset contained in a package
|
||
|
|
|
||
|
|
List dataset contained in a package
|
||
|
|
|
||
|
|
## Usage
|
||
|
|
|
||
|
|
``` r
|
||
|
|
list_pkg_data(pkg)
|
||
|
|
```
|
||
|
|
|
||
|
|
## Arguments
|
||
|
|
|
||
|
|
- pkg:
|
||
|
|
|
||
|
|
Name of the package, must be installed.
|
||
|
|
|
||
|
|
## Value
|
||
|
|
|
||
|
|
a `character` vector or `NULL`.
|
||
|
|
|
||
|
|
## Examples
|
||
|
|
|
||
|
|
``` r
|
||
|
|
list_pkg_data("ggplot2")
|
||
|
|
#> [1] "diamonds" "economics" "economics_long" "faithfuld"
|
||
|
|
#> [5] "luv_colours" "midwest" "mpg" "msleep"
|
||
|
|
#> [9] "presidential" "seals" "txhousing"
|
||
|
|
#> attr(,"package")
|
||
|
|
#> [1] "ggplot2"
|
||
|
|
```
|