sensebox / opensensmapR

R client for opensensemap.org
https://noerw.github.io/opensensmapR/inst/doc/osem-history
8 stars 5 forks source link

consider using data tables or tibbles instead of data.frame #19

Closed noerw closed 5 years ago

noerw commented 6 years ago

data.frame is known to be inconsistent, user-unfriendly and fiddly.

Switching to tibble makes the antipattern of overriding [ etc for each class obsolete. (tbl_df is used for osem_measurements already).

Will have to read more about tibbles before deciding.

noerw commented 5 years ago

Internally this is not worth a rewrite, and users should decide for them selves what to use. Transforming a sensebox data.frame into a tibble is as simple as tibble::as.tibble(df)