Learn R Programming

readMDTable (version 0.3.0)

read_md_table_example: Get Path to readMDTable Examples

Description

Get Path to readMDTable Examples

Usage

read_md_table_example(file = NULL)

Value

Vector of example file names if file is NULL, else the path to the example markdown table file.

Arguments

file

Name of file. If NULL, the example files will be listed.

Details

readMDTable comes with a number of well-known datasets as example markdown tables in the inst/extdata directory. read_md_table_example will list the file names or return the path of a specified file.

Examples

Run this code
# List the available example files
read_md_table_example()

# Get the path to the mtcars example file
read_md_table_example("mtcars.md")

# Read in an example file
mtcars_path <- read_md_table_example("mtcars.md")
read_md_table(mtcars_path)

Run the code above in your browser using DataLab