fixed errors in R file

banana