This should be dead simple, but I can't figure it out. I have a string that represents a path name to a file, ie
"C:/blah/this/whatever/filename"
And I need to extract the filename (programatically). I am trying to use strsplit (or str_split) and, it is easy enough to split the string by '/' but.. I cannot fathom how to actually extract one of the values in the returned vector, or determine how many elements are even in the vector (as that may very for my application). Using length (oddly enough, to my mind) does not help. Help?