Reinforcement Learning: An Introduction to Dynamic Programming with R
statalgo.com