Learn R Programming

mergen (version 0.2.1)

fileHeaderPrompt: Extract file headers from files in prompt

Description

This function extracts file headers from files. Recommended is to use this function with the results from extractFilenames

Usage

fileHeaderPrompt(filenames)

Value

A string containing the file headers of the files in "filenames" list

Arguments

filenames

list containing file names.

Examples

Run this code
if (FALSE) {
prompt <- "how do I perform PCA on data in a file called test.txt?"
filenames <- extractFilenames(prompt)
fileHeaderPrompt(filenames)
}

Run the code above in your browser using DataLab