removeTable: Remove Qtable From Data

Description Usage Arguments Value

View source: R/processSimulations.R

Description

This function filters the inputted dataframe so we only get every 8th row. Because there are 8 rows in the Q table, which we have in the output of generateData, everything trial's information is repeated 8 times. This function uses a dplyr::filter for (row_number() + 1 1, which returns the 1st, 9th, 17th, 25th, etc. rows which happen to be the first one for the new action set.

Usage

1

Arguments

data

Any dataframe that has a Qtable column, such as the output of oneTrial or simModel.

Value

The unique values of the data (minus the Qtable).


jdtrat/dynaq documentation built on July 24, 2020, 7:18 a.m.