View source: R/get_seedlings_nouns.R
get_seedlings_nouns | R Documentation |
For the functions to work, clone seedlings-nouns to ~/BLAB_DATA/seedlings-nouns/
first.
get_seedlings_nouns(version = NULL)
get_seedlings_nouns_extra(version = NULL, table)
get_seedlings_nouns_codebook(
version = NULL,
table = c("seedlings-nouns", "regions", "recordings", "sub-recordings")
)
version |
version tag to checkout |
table |
For |
get_seedlings_nouns()
loads the main "seedlings-nouns" table with the annotated nouns.
get_seedlings_nouns_extra()
function allows for loading additional tables: "regions", "recordings", and "sub-recordings".
get_seedlings_nouns_codebook()
function loads codebooks for any of the four tables mentioned above.
To get the same data every time you run the script, always supply the version argument.
To get the latest version number, run get_latest_version('seedlings-nouns')
and then set the version parameter to the output number, e.g., get_seedlings_nouns(version = 'v1.0.0')
.
Alternatively, don't set the version parameter, run the function, look for the version number in the issued warning, and then set version
to that number.
You don't need to run the function again after that.
If you are a Bergelson Lab member and you need to use a version that isn't public, clone seedlings-nouns_private(https://github.com/Bergel sonLab/seedlings-nouns_private) to ~/BLAB_DATA/seedlings-nouns_private/
.
The function will look in the private repository only if you supply a corresponding private version - one starting with "0." or ending with "-dev".
To get the latest private version, use get_latest_version('seedlings-nouns_private')
.
Otherwise, look in the releases section on GitHub.
There are no version descriptions though so you basically select the version by date.
For get_seedlings_nouns
, a tibble with one annotated noun per row.
For get_seedlings_nouns_extra
, a tibble with one row per region, recording, or sub-recording depending on which table was requested.
For get_seedlings_nouns_codebook
, a tibble with ono row per column of the requested table.
version <- 'v1.0.0'
seedlings_nouns <- get_seedlings_nouns(version)
seedlings_nouns_codebook <- get_seedlings_nouns_codebook(version)
seedlings_regions <- get_seedlings_nouns_extra(version, 'regions')
seedlings_regions_codebook <- get_seedlings_nouns_codebook(version,
'recordings')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.