How to get file names without extension in the R programming language. More details: [ Ссылка ]
R code of this video:
my_files <- c("data1.csv", "data2.xlsx", "data3.txt") # Example file names
my_files # Print file names
my_files_new <- tools::file_path_sans_ext(my_files) # Remove file extensions
my_files_new # Print updated names
Follow me on Social Media:
Facebook – Statistics Globe Page: [ Ссылка ]
Facebook – Group for Discussions & Questions: [ Ссылка ]
LinkedIn – Statistics Globe Page: [ Ссылка ]
LinkedIn – Group for Discussions & Questions: [ Ссылка ]
Twitter: [ Ссылка ]
Music by bensound.com
![](https://s2.save4k.ru/pic/Aocg7ySCtTc/maxresdefault.jpg)