Building a dataset or compilationFunctions that can be used when building individual datasets and entire compilation. |
|
---|---|
Update the `remake.yml` file with new studies |
|
Combine all the AusTraits studies into the compiled AusTraits database |
|
Add version information to AusTraits |
|
Apply taxonomic updates to austraits_raw |
|
Build dataset |
|
Configure AusTraits database object |
|
Load Dataset |
|
Build reports for listed datasets |
|
Load schema for an traits.build data compilation (excluding traits) |
|
Make unit conversion functions |
|
Get SHA string from Github repository for latest commit |
|
Retrieve version for compilation from definitions |
|
Creating metadata filesFunctions that help you create metadata files. |
|
Test whether specified `dataset_id` has the correct setup |
|
Create a template of file `metadata.yml` for specified `dataset_id` |
|
Check the output of running `custom_R_code` specified in the metadata for specified `dataset_id` |
|
For specified `dataset_id`, populate columns for traits into metadata |
|
For specified `dataset_id` import context data from a dataframe |
|
For specified `dataset_id` import location data from a dataframe |
|
Adds citation details to a metadata file for given study |
|
Adds citation details from a doi to a metadata file for a `dataset_id` |
|
Add a categorical trait value substitution into a metadata file for a `dataset_id` |
|
Add a dataframe of trait value substitutions into a metadata file for a dataset_id |
|
Substitutions from a dataframe |
|
Add a taxonomic change into the `metadata.yml` file for a `dataset_id` |
|
Add a list of taxonomic updates into a metadata file for a `dataset_id` |
|
Find `dataset_id`'s with a given taxonomic change |
|
Remove a taxonomic change from a yaml file for a `dataset_id` |
|
Update a taxonomic change into a yaml file for a `dataset_id` |
|
Exclude observations in a yaml file for a `dataset_id` |
|
Find list of unique datasets within compilation containing specified taxa |
|
Reading & writing filesEnable reading and writing of various file types. |
|
Read in a csv as a tibble with column types as characters |
|
Read in a `metadata.yml` file for a study |
|
Write `metadata.yml` for a study |
|
Read yaml (from package yaml) |
|
write yaml (from package yaml) |
|
Export AusTraits version as plain text |
|
Working with outputsFunctions to work with compiled traits.build objects. |
|
Beeswarm Trait distribution |
|
Identify duplicates preventing pivoting wider |
|
Test whether a dataset can pivot wider |
|
Pivot wide format data into a long format |
|
Pivot long format data into a wide format |
|
Building a compilation (private)Private functions that are called in the background when building individual datasets and entire compilation. These are only of interest to developers. |
|
Add or remove columns of data |
|
Convert units to desired type |
|
Create entity id |
|
Apply custom data manipulations |
|
Flag any excluded observations |
|
Flag values outside of allowable range |
|
Flag values with unsupported characters |
|
Flag any unrecognised traits |
|
Flag disallowed trait values and disallowed characters |
|
Format context data from list to tibble |
|
Format contributors from list into tibble |
|
Format location data from list to tibble |
|
Function to generate sequence of integer ids from vector of names Determines number of 00s needed based on number of records |
|
Function to generate sequence of integer ids for methods |
|
Process a single dataset |
|
Standardise species names |
|
Apply taxonomic updates |
|
Generate unit conversion name |
|
Test whether specified `dataset_id` has the correct setup |
|
Path to the `metadata.yml` file for specified `dataset_id` |
|
Select column by user |
|
Select variable names by user |
|
Read the `metadata.yml` file for specified `dataset_id` |
|
Write the YAML representation of `metadata.yml` for specified `dataset_id` to
file |
|
Diverse utility functionsDiverse utility functions for converting and working with various data types. |
|
Add an item to the end of a list |
|
Format BibEntry using RefManageR |
|
Convert BibEntry object to a list |
|
Check values in one vector against values in another vector |
|
Check values in a vector do not contain disallowed characters |
|
Convert all columns in data frame to character |
|
Convert dataframe to list |
|
Extract a trait element from the definitions$traits$elements |
|
Format table with kable and default styling for html |
|
Convert a list of elements into a BibEntry object |
|
Convert a list with single entries to dataframe |
|
Convert a list of lists to dataframe |
|
Convert NULL values to a different value |
|
Split and sort cells with multiple values |
|
Standardise doi |
|
Format a tree structure from a vector |
|
Functions used when writing reports (private)Private functions used inside the template reports. These are only of interest to developers. |
|
Start note recorder (needs review?) |
|
Add a note to the note recorder as a new row |
|
Create a tibble with two columns with note and link |
|
Return a specific row from notes |
|
Print all notes |
|
Print note (needs review?) |
|
Print a specific row from notes |
|
Create a string of random letters |