Learn R Programming

colouR (version 0.1.1)

getExtension: getExtension

Description

Get the file extension of a given file. This function takes a file path as input and returns the file extension without the dot.

Usage

getExtension(file)

Value

A character vector containing the file extension without the dot.

Arguments

file

A character string containing the file path.

Examples

Run this code
getExtension("example.txt")

Run the code above in your browser using DataLab