Skip to content

Commit

Permalink
Fix datasheet so it doesn't return NAs in empty dataframes
Browse files Browse the repository at this point in the history
  • Loading branch information
katieb1 committed Oct 10, 2024
1 parent e890961 commit 4cb9dde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/datasheet.R
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ setMethod("datasheet",
}
}

sheet <- sheet[rowSums(is.na(sheet)) != ncol(sheet), ]
outSheetList[[cName]] <- sheet

# return single row datasheets as named vectors (if not for multiple scenarios)
Expand Down

0 comments on commit 4cb9dde

Please sign in to comment.