Gilead-BioStats / gsm

Good Statistical Monitoring R Package
https://gilead-biostats.github.io/gsm/
Apache License 2.0
39 stars 9 forks source link

Feature: Use "name__class" method in `sqldf()` #1912

Closed lauramaxwell closed 4 weeks ago

lauramaxwell commented 4 weeks ago

Feature Details

RunQuery() uses sqldf() to perform its SQL queries, but it currently does not enforce classes when returning data. Using the "name__class" method allows the user to specify the class of the column in the query, and sqldf will return the data in the proper class.

When a spec entry contains "type", we should use that field to ensure class compliance throughout the mapping process.

Example Code

Possible Implementation

Additional Comments