convert: convert

View source: R/convert.R

convertR Documentation

convert

Description

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

Usage

convert(data)

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

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

MTES-MCT/didor documentation built on April 7, 2023, 7:42 a.m.