Skip to content

Commit

Permalink
Fix names/labels in SplitFormQuestions; DS-2601
Browse files Browse the repository at this point in the history
  • Loading branch information
flipDevTools committed Aug 8, 2019
1 parent 524c6c8 commit 65243e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/splitformquestions.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SplitFormQuestions <- function(form.data, show.labels = TRUE,
elem <- form.data[[i]]
if (is.data.frame(elem))
{
nms <- setdiff(Labels(elem), c("NET", "SUM"))
nms <- setdiff(names(elem), c("NET", "SUM"))

# Grid questions also have column and row NETs/SUMs which need to
# be removed
Expand All @@ -39,7 +39,7 @@ SplitFormQuestions <- function(form.data, show.labels = TRUE,
}
else if (show.labels)
{
dat[[Labels(elem)]] <- elem
dat[[attr(elem, "label")]] <- elem
is.grid <- c(is.grid, FALSE)
}
else
Expand Down

0 comments on commit 65243e0

Please sign in to comment.