Learn R Programming

packDAMipd (version 1.1.0)

get_extension_file: Function to get extension of a file name

Description

Function to get extension of a file name

Usage

get_extension_file(filename)

Value

the extension

Arguments

filename

name of a file

Details

if there is no "." character returns error else returns last characters those after string split using "."

Examples

Run this code
get_extension_file("data.txt")

Run the code above in your browser using DataLab