I have a data frame that looks as such:
files
MVNDR_10055_WESTERN FOREST PRODUCTS.PDF
MVNDR_102182_BLACK AND DECKER US INC..PDF
MVNDR_10363_SPRAY AND FORGET .PDF
How do I extract the "PDF" into another column in the data frame and then lowercase it? My idea is then to concatenate afterwards which shouldn't be an issue using paste0.
Ideal result would look as as such:
files Lowercase
MVNDR_10055_WESTERN FOREST PRODUCTS.PDF pdf
MVNDR_102182_BLACK AND DECKER US INC..PDF pdf
MVNDR_10363_SPRAY AND FORGET .PDF pdf
Eventually the goal is for the table to look like this.
files
MVNDR_10055_WESTERN FOREST PRODUCTS.pdf
MVNDR_102182_BLACK AND DECKER US INC..pdf
MVNDR_10363_SPRAY AND FORGET .pdf
Note the lowercase "pdf"