query: Query functions

Description Usage Arguments Value

Description

Returns the number of cleaned locations documents in between two dates

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

Arguments

cons

a list of connections created with [connect_stage_collections()].

dates

a date range, a character vector of length two. Dates must be in this format "yyyy-mm-dd".

sample_size

number of location documents to be queried.

n

number of trips used by 'query_most_recent_n_trip_docs()'

Value

a data.frame/data.table.

'downsample_cleaned_locations_by_timestamp' returns a dataframe containing 'sample_size' location documents within the date range.

'query_usercache_put_summ()' returns the first and last put calls for each user.

'query_most_recent_n_trip_docs()' yields trips data for the most recent n trips, based on data.end_ts

'query_confirmed_trips_by_timestamp()' trips data between the start timestamp of the first date and the start timestamp of the second date.

'get_n_trips_in_query()' returns the number of cleaned trip documents in between two dates


asiripanich/emdash documentation built on Sept. 23, 2021, 7:20 p.m.