I have set of files in a folder as follows :
nlb_1.pdb
nlb_2.pdb
nlb1_1.pdb
nlb1_2.pdb
How to access all the files in the folder in rscript and execute following commands for each of the files :
library(bio3d)
nlb_1 <- read.pdb('nlb_1.pdb',multi = TRUE)
ca.inds_nlb_1 <- atom.select(nlb_1,elety = 'CA')