Learn R Programming

packDAMipd (version 0.2.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)

Arguments

filename

name of a file

Value

the extension

Details

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

Examples

Run this code
# NOT RUN {
get_extension_file("data.txt")
# }

Run the code above in your browser using DataLab