Description Usage Arguments Value
View source: R/build_bitstring.R
build_bitstring
creates a bitstring from an action vector, state
matrix, and number of actions.
1 | build_bitstring(action_vec, state_mat, actions)
|
action_vec |
Numeric vector indicating what action to take for each state. |
state_mat |
Numeric matrix with rows as states and columns as predictors. |
actions |
Numeric vector length one with the number of actions. |
Returns numeric vector bitstring.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.