MakeAttributeFilter: Make a function to filter out trials based on attribute...

Description Usage Arguments Details Value

Description

This is a higher-order function.

Usage

1

Arguments

attr_name

the name of attribute to filter by

Details

The function returns a higher order function with the attr_name fixed. Details about the returned function:

Usage

MakeAttributeFilter(attr_name)(trials, attr_value)

trials

trials a list of Trial objects

attr_value

a vector of values to filter out

Value

a function f(trials, attr_values) that filters out trials with the specified attr_values for the given attr_name.


tjmahr/lookr documentation built on May 31, 2019, 3:41 p.m.