update codebook for r file