Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #89 from vsbuffalo/LinearizeNestedList-fix
Browse files Browse the repository at this point in the history
check if list has length > 0 before assigning name, fixes issue #87
  • Loading branch information
karthik committed May 12, 2016
2 parents 06de323 + 390f2b4 commit 8123400
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/ee_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ LinearizeNestedList <- function(NList, LinearizeDataFrames=FALSE,
names(Element) <- as.character(1:length(Element))
Element <- LinearizeNestedList(Element, LinearizeDataFrames,
NameSep, ForceNames)
names(Element) <- paste(EName, names(Element), sep=NameSep)
if (length(Element)) {
names(Element) <- paste(EName, names(Element), sep=NameSep)
}
Jump <- length(Element)
NList <- c(Before, Element, After)
}
Expand Down

0 comments on commit 8123400

Please sign in to comment.