Nothing
#' Read IMGW hydrological and meteorological raw files that can be saved in different formats
#'
#' Internal function for reading IMGW files
#' @param translit logical whether translit detected and iconv needed for reading
#' @param fpath path to unzipped CSV-alike file
#'
#' @keywords internal
#' @noRd
imgw_read = function(translit, fpath) {
if (translit) {
data = as.data.frame(data.table::fread(cmd = paste("iconv -f ISO-8859-2 -t ASCII//TRANSLIT", fpath)))
} else {
data = tryCatch(expr = read.csv(fpath, header = FALSE, stringsAsFactors = FALSE, sep = ",",
fileEncoding = "CP1250"),
warning = function(w) {
read.csv(fpath, header = FALSE, stringsAsFactors = FALSE, sep = ";")
})
if (ncol(data) == 1) {
data = tryCatch(expr = read.csv(fpath, header = FALSE, stringsAsFactors = FALSE, sep = ";",
fileEncoding = "UTF-8"),
warning = function(w) {
read.csv(fpath, header = FALSE, stringsAsFactors = FALSE, sep = ";")
})
}
}
return(data)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.