Displaying 1 result from an estimated 1 matches for "universities1".
Did you mean:
universities
2009 Jun 03
2
Regular expression \ String Extraction help
...niversities2.txt
C:\test\Hitchhikers Guide To The Galaxy\2009-04-10 1400 Fri
Hitchhikers Guide To The Galaxy42.txt
My main issue is the conversion for 'Hitchkikers Guide To The
Galaxy54' because of the spaces in the Name. So far this is what i
have:
> txt <- '2009-04-10 1400 Fri Universities1.txt'
> step1 <- unlist(strsplit(txt, '\\.'))
> step2 <- unlist(strsplit(step1[1], ' '))
> Name <- gsub('[0-9]',replacement='', step2[4])
> step3 <- paste(step2[1], step2[2], step2[3], sep=' ')
> paste('C:\\test\\', Name,...