| env_action_space_contains {gym} | R Documentation | 
Evaluate whether an action is a member of an environments's action space.
Description
Evaluate whether an action is a member of an environments's action space.
Usage
env_action_space_contains(x, instance_id, action)
Arguments
| x | An instance of class "GymClient"; this object has "remote_base" as an attribute. | 
| instance_id | A short identifier (such as "3c657dbc") for the environment instance. | 
| action | An action to take in the environment. | 
Value
A boolean atomic vector of length one indicating if the action is a member of an environments's action space.
Examples
## Not run: 
remote_base <- "http://127.0.0.1:5000"
client <- create_GymClient(remote_base)
env_id <- "CartPole-v0"
instance_id <- env_create(client, env_id)
action <- env_action_space_sample(client, instance_id)
env_action_space_contains(client, instance_id, action)
## End(Not run)
[Package gym version 0.1.0 Index]