Learn R Programming

matrixdist (version 1.1.9)

n_pos: Find how many states have positive reward

Description

Find how many states have positive reward

Usage

n_pos(R)

Value

The number of states with positive rewards

Arguments

R

reward vector