The full code connects to a database via API, retrieving only the variables needed by parsing the equations from a csv file. It then either returns the data to R or writes it to an xlsx file — organized by cognitive test or site — to help address any incorrect values.