Create preprocess_forR.py