Learn R Programming

mergen (version 0.2.1)

extractFilenames: Extract file names from user prompt

Description

This function extracts file names from the user prompt. Current filenames that are supported by this function are *.txt, *.tsv, *.csv *.xls, *.xlsx, *.bed, *.bigWig, *.bw and *.bigBed. Other filenames will not be extracted. If no filenames are found, the function will return NA.

Usage

extractFilenames(text)

Value

A list holding file names from the user prompt.

Arguments

text

user prompt

Examples

Run this code
{
user_prompt <- "How do I perform PCA on data in my file called test.txt?"
extractFilenames(text=user_prompt)
}

Run the code above in your browser using DataLab