R/myget.R

Defines functions myget

Documented in myget

#' Return the Value of a Named data.frame
#' @param x Name of data.frame
#' @export
#' @examples
#' myget("iris")
#' myget("mtcars")
myget=function(x){
     if (!is.null(x) && nzchar(x) &&
         exists(x) && is.data.frame(get(x))) {
          get(x)
     }
}

Try the editData package in your browser

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

editData documentation built on April 2, 2021, 5:06 p.m.