R/i_feather.R

Defines functions i_feather

Documented in i_feather

#' @title Import Feather files
#'
#' @description
#' Import Feather files.
#'
#' Convert upper-case English characters to lower-case.
#'
#' @usage
#' i_feather(folder, path)
#'
#' @param folder A folder above 1) the Feather file and 2) the R file.
#' @param path Relative to \code{folder}, path to the Feather file.
#'
#' @return
#' A data-frame.
#'
#' @importFrom feather read_feather
#'
#' @export

i_feather <- function(folder,
                      path) {

  path <- zhaoy::path(basename = folder,
                      path)

  x <- feather::read_feather(path = path)

  zhaoy::i_df(x = x)

}
zhaoy/zhaoy documentation built on Feb. 1, 2024, 7:50 p.m.