Rscript and Codebook