Skip to content

Commit

Permalink
fix for #26
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner committed Feb 13, 2019
1 parent b433604 commit 45658a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/nc_grid.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ nc_grids_dimvar <- function(dimension, variable, axes) {
out <- dplyr::arrange(out, dplyr::desc(nchar(.data$grid)), .data$grid)
## catch the NA shapes (the scalars) and set to "-"
out[["grid"]][is.na(out[["grid"]]) | out[["grid"]] == "DNA"] <- "S"
out
out[["ndims"]] <- unlist(lapply(strsplit(out$grid, ","), length))
out %>%
dplyr::group_by(.data$grid, .data$ndims) %>%
dplyr::summarize(nvars = dplyr::n()) %>%
dplyr::ungroup()
}

0 comments on commit 45658a6

Please sign in to comment.