Skip to content

colnames argument in sqlFetch backwards? (PR#7355)

1 message · bgunter@gene.com

#
Full_Name: Bert Gunter
Version: 2.0.0 patched
OS: Win2000
Submission from: (NULL) (192.12.78.250)


The TRUE/FALSE options of the colnames argument in sqlFetch (RODBC) seem to be
reversed, at least for .xls files.

## z is a connection to an xls workbook opened by odbcConnectExcel()
RecID     Name Run  Grams Lost Run (80L)
1    NA Activase 117 839.91              0
2    NA Activase 118 860.52              0
3    NA Activase 119 921.23              0
4    NA Activase  NA     NA              1
5    NA Activase 120 722.62              0
NA Activase 117 839.91 0
2 NA Activase 118 860.52 0
3 NA Activase 119 921.23 0
4 NA Activase  NA     NA 1
5 NA Activase 120 722.62 0
6 NA Activase 121 762.48 0

I note also that the last column, "Lost Run (80L)," was actually TRUE/FALSE and
some blanks in the Excel sheet and was silently coerced to numeric. This is no
problem, of course, but I wonder if it's the intended behavior and, if so, is it
documented?