R/read_satelite.R

Defines functions read_satellite

Documented in read_satellite

#' Import Weather data From satellite
#'
#' @param path
#'
#' @return
#' @export
#'
#' @examples
#'
read_satellite <- function(path = NULL) {
  if (is.null(path)) path = rstudioapi::selectFile()
  df <- readr::read_csv(path, skip = 8, col_types = list(readr::col_datetime(), readr::col_double()))
  # df$time <- lubridate::mdy_hm(df$time)
  df <- dplyr::rename(df, 'datetime'=time)
  return(df)
}
edpclau/circadian-dynamics documentation built on Aug. 25, 2023, 12:18 p.m.