Skip to content

Commit

Permalink
nothing much
Browse files Browse the repository at this point in the history
  • Loading branch information
stineb committed Oct 26, 2023
1 parent 2c3222b commit 87dc66f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ Imports:
dplyr,
purrr,
tidyr,
tidyselect,
magrittr,
ncmeta,
tidync,
tidyr,
readr,
stringr,
lubridate,
parallel,
Expand Down
6 changes: 3 additions & 3 deletions R/map2tidy.R
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ nclist_to_df_byilon <- function(
)
)

# chech if any element has zero rows and drop that element
# check if any element has zero rows and drop that element
drop_zerorows <- function(y) { return(y[!sapply(y,
function(x) nrow(x)==0 )]) }
df <- df %>%
Expand All @@ -238,7 +238,7 @@ nclist_to_df_byilon <- function(
dplyr::bind_rows() %>%
dplyr::group_by(lon, lat) %>%
tidyr::nest() %>%
dplyr::mutate(data = purrr::map(data, ~arrange(., time)))
dplyr::mutate(data = purrr::map(data, ~dplyr::arrange(., time)))
}

if (!is.na(outdir)){
Expand All @@ -248,7 +248,7 @@ nclist_to_df_byilon <- function(
}

} else {
print(paste("File exists already:", outpath))
message(paste("File exists already:", outpath))
}

if (is.na(outdir)){
Expand Down

0 comments on commit 87dc66f

Please sign in to comment.