Hi,

I have this variable;


x <- c("test_01.log")


and I want to extract the number (01) out of the variable.
So that I get;

 > x
[1] 1



I tried strsplit, but I don't know how to refer to the result.

Can someone help me with that?
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to