Skip to content

Commit

Permalink
Fix bug in saveDatasheet
Browse files Browse the repository at this point in the history
  • Loading branch information
katieb1 committed Nov 2, 2023
1 parent df5555f commit b1eeae4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions R/saveDatasheet.R
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,12 @@ setMethod("saveDatasheet", signature(ssimObject = "SsimObject"), function(ssimOb
}
}

# Remove invalid column names\
cDat <- subset(cDat, select=-c(
ScenarioID,ProjectID,ScenarioName,ParentID,ParentName))
# Remove invalid column names
extraColNames <- c("ScenarioID","ProjectID","ScenarioName","ParentID","ParentName")
if (all(extraColNames %in% colnames(cDat))){
cDat <- subset(cDat, select=-c(
ScenarioID,ProjectID,ScenarioName,ParentID,ParentName))
}

# convert factors to strings
for (kk in seq(length.out = ncol(cDat))) {
Expand Down

0 comments on commit b1eeae4

Please sign in to comment.