First Version R Preprocessing