R/readtxt.R

Defines functions read.txt

Documented in read.txt

#' @title  Read the text to data.frame
#' @author Chai
#' @description Read the strings and transform to
#' the data.frame.
#' @importFrom  utils read.table
#' @param text strings
#' @param header logical value
#' @param ... for more see \code{\link[utils]{read.table}}
#' @return  A data.frame
#' @export
read.txt <- function(text, header = TRUE, ...) {
  return(read.table(text = text, header = header, ...))
}

Try the ch package in your browser

Any scripts or data that you put into this service are public.

ch documentation built on July 9, 2021, 9:07 a.m.