Add flow analysis R-files

Added R-file for flow analysis of acceptance of task recommendations.