Skip to content

Commit

Permalink
correcting size file
Browse files Browse the repository at this point in the history
  • Loading branch information
TitouanRobert committed Oct 20, 2017
1 parent c724372 commit 1ae6dda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/antaresReadH5.R
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,12 @@ h5ReadAntares <- function(path, areas = NULL, links = NULL, clusters = NULL,
{
data[, "mcYear" := rep(struct$mcyLoad, each = dimData[1] * dimData[3])]
}
integerVariableS <- integerVariable[integerVariable%in%names(data)]
if(length(integerVariableS)){
ordervar <- names(data)[ match(integerVariableS, names(data))]
data[,c(ordervar) := lapply(.SD, as.integer), .SDcols = ordervar]
}

data
}

Expand Down

0 comments on commit 1ae6dda

Please sign in to comment.