Skip to content

Commit

Permalink
Make sure wl are sorted by increasing order in parse_generic()
Browse files Browse the repository at this point in the history
fix #30
  • Loading branch information
Bisaloo committed Nov 1, 2020
1 parent b71385e commit 8a00507
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/parse_generic.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,7 @@ lr_parse_generic <- function(filename, decimal = ".", sep = NULL) {
"scope" = NA_real_,
"processed" = rawsplit[, dim(rawsplit)[2]])

data <- data[order(data$wl), ]

return(list(data, metadata))
}

0 comments on commit 8a00507

Please sign in to comment.