Adding r version to run data analysis on beds data