As discussed before, it is relatively simple to read files in R using the provisions in read.csv and other utilities. Subsetting strings can be performed using the standard R indexing methods or by using one of the several string utilities in R such as substr, substring, paste, and paste0.