Behavior Analysis with Machine Learning Using R