get_type: Get data for drivers or drones only from a mixed user list

Description Usage Arguments Examples

Description

A list of user data generated via methods like read_all() contains a mix of drivers and drone operators. get_drivers() and get_drones() extract only users of a certain type from such a mixed list.

Usage

1
2
3
4
5
get_type(user_list, type)

get_drivers(user_list)

get_drones(user_list)

Arguments

user_list

List of user data created via a method such as read_all()

type

String of the type of user to keep. Must be one of "driver" or "drone".

Examples

1
2
3
4
5
6
## Not run: 
# Given a user-list of data `d`...
get_drivers(d)
get_drones(d)

## End(Not run)

drsimonj/adapter documentation built on May 15, 2019, 2:51 p.m.