endpart | R Documentation |
endpart takes a path listing and extracts the final part. This is used to find the subdirectory name into which an analysis is to be placed, or could be used to find only the filename of a file at the end of a long path. endpart automatically finds whether the user has '/' or '\\' as the section separator.
endpart(x)
x |
a character vector of the path to a subdirectory or filename |
the final character string - either a subdirectory or filename
first <- "C:/Users/public/Public Documents/first/"
second <- "C:\\Users\\public\\Public Documents\\second"
print(first)
print(second)
endpart(first)
endpart(second)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.