complete_job_columns: Ensure that the data retrieved from the Climb API has all the...

Description Usage Arguments Value Examples

View source: R/make_animals_df.R

Description

If fields have no data, they're not returned by the Climb API, which can lead to missing columns if all the animals returned by a query have missing values in that field. complete_job_columns() ensures that all expected columns are present (and populated with NA if there is no data).

Usage

1

Arguments

data

Output of make_animals_df()

Value

A data frame containing all columns returned by the Climb Get Animals By Job API

Examples

1
2
3
4
5
6
## Not run: 
r <- get_animals()
dat <- make_animals_df(r)
complete_job_columns(dat)

## End(Not run)

Sage-Bionetworks/climbr documentation built on April 25, 2020, 4:08 p.m.