Skip to content
Prev 388476 / 398513 Next

problem for strsplit function

Hello List,
I have a? one column data frame to store file name with extension. I want to create new column to keep file name only without extension.
I tried to use strsplit("name1.csv", "\\.")[[1]] to do that, but it just retain the first row only and it is a vector.? how can do this for all of rows and put it into a new column?
thank you,
Kai