convert: convert

Description Usage Arguments Details Value Examples

View source: R/convert.R

Description

Try to convert columns according to types sended by the API.

Usage

1

Arguments

data

a dataframe returned by get_data()

Details

CAUTION For private life reason, data returns by DiDo are secretize (the value is replaced by the string "secret") so readr can't determine data type.

All secret values will be transform to NA

You can find column's type with columns()

Value

a tibble with converted integer and number columns

Examples

1
2
3
4
datafiles() %>%
  dido_search("6c79805c-def9-4695-9d9f-7d86599c4d8a") %>%
  get_data() %>%
  convert()

nbc/didor documentation built on Dec. 22, 2021, 12:04 a.m.