# NOT RUN {
# Create exemplary state-action table (Q) with 2 actions and 3 states
Q <- data.frame("up" = c(-1, 0, 1), "down" = c(-1, 1, 0))
# Show best possible action in each state
computePolicy(Q)
# }
Run the code above in your browser using DataLab