verbal-autopsy-software / Tariff

R package of Tariff method for VA
0 stars 4 forks source link

Check to see if column 1 is ID before assignment #6

Open mjutras-mitre opened 5 years ago

mjutras-mitre commented 5 years ago

An assumption is being made that ID is column 1. Safer to add a check first or alternatively could access by column name (this may require name to be part of the function input, though, if name may not be consistent)

https://github.com/verbal-autopsy-software/Tariff/blob/2324381cf330fc82f6022a950e7579fdee413271/Tariff/R/Tariff.r#L74-L77

richardli commented 5 years ago

thanks, I agree conceptually. However, two issues:

Making users type the extra argument seems not worth it. Especially since CrossVA will be the default data preparation tool, and it will have the ID column.