Skip to content

Commit

Permalink
fix: datastore as data.frame
Browse files Browse the repository at this point in the history
  • Loading branch information
bczernecki committed Oct 31, 2024
1 parent b5d7005 commit d063eff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions R/meteo_imgw_datastore.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
#' @param allow_failure logical - whether to proceed or stop on failure. By default set to TRUE (i.e. don't stop on error). For debugging purposes change to FALSE
#' @import data.table
#' @export
#' @returns data.frame with a raw meteorological measurements in 10-min intervals
#' @returns data.frame with a raw meteorological measurements in 10-min intervals.
#' Please note that this dataset is not validated by experts and may contain invalid values.
#' @examples
#' \donttest{
#' imgw_telemetry = meteo_imgw_datastore(year = 2022:2023,
Expand Down Expand Up @@ -160,5 +161,5 @@ meteo_imgw_datastore_bp = function(year,

colnames(all_data)[which(colnames(all_data) %in% c("V1", "V3"))] = c("id", "date_time")

return(all_data)
return(as.data.frame(all_data))
}
3 changes: 2 additions & 1 deletion man/meteo_imgw_datastore.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d063eff

Please sign in to comment.