We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b25e6c0 commit 15aefc3Copy full SHA for 15aefc3
R/dataset.R
@@ -51,6 +51,18 @@ findAllColumnNamesInOptions <- function(options, allColumnNames) {
51
preloadDataset <- function(datasetPathOrObject, options) {
52
53
dataset <- loadCorrectDataset(datasetPathOrObject)
54
+
55
+ # repair any names like "", which cause false positives in findAllColumnNamesAndTypes
56
+ # because empty options are often ""
57
+ cnms <- colnames(dataset)
58
+ if (any(cnms == "")) {
59
60
+ bad <- which(cnms == "")
61
+ newCnms <- make.names(cnms)
62
+ cnms[bad] <- newCnms[bad]
63
+ colnames(dataset) <- cnms
64
65
+ }
66
# columns <- findAllColumnNamesInOptions(options, colnames(dataset))
67
temp <- findAllColumnNamesAndTypes(options, colnames(dataset))
68
0 commit comments