[R] problem for strsplit function

Kai Yang y@ngk@|9999 @end|ng |rom y@hoo@com
Thu Jul 8 03:27:48 CEST 2021

 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,

	[[alternative HTML version deleted]]

More information about the R-help mailing list