I'm trying to do some data cleaning to a file. The particular field I'm trying to clean describe what file it originally came from. Thus, there is always ".csv" at the end of the value in the field. I would like to remove this part of the value but keep the rest.
Here is an example of the field:
File Name
bagel.csv
donut.csv
hamburger.csv
carrots.csv
I would like the field to look something like this:
File Name
bagel
donut
hamburger
carrot
Is there a way to do this in R? Any assistance would be extremely appreciated.