checkExtension: Checks if file extension matches

Description Usage Arguments Value Examples

Description

Checks if file extension matches

Usage

1
checkExtension(file, exp_ext)

Arguments

file

The file of which the extension needs to be checked.

exp_ext

The expected extension of the file to be checked. This extension file can be both with or without leading "." For example, inputing .csv or csv will give similar results.

Value

A TRUE value if the extension matches. And a FALSE value if the extension does not match.

Examples

1
checkExtension(file = "testdata/test1.csv", exp_ext = "csv")

marketredesign/mrdhelpers documentation built on May 7, 2019, 10:48 p.m.