statistikat / STATcubeR

R interface for the STATcube REST API and data.statistik.gv.at
https://statistikat.github.io/STATcubeR/
GNU General Public License v2.0
14 stars 2 forks source link

naming things #9

Closed GregorDeCillia closed 3 years ago

GregorDeCillia commented 3 years ago
GregorDeCillia commented 3 years ago

About point 4: It is probably a good idea to make the parsers available both as functions and methods and use a consistent naming scheme. The logic should be implemented in the functions and the methods call the functions.

## methods without arguments
sc_table_meta(obj)
obj$meta

## methods with arguments
sc_table_field(obj, i)
obj$field(i)

This way, the functions can be developed and documented independently.