pre_process: A function to convert a large data into a number of sub...

Description Usage Arguments Value Examples

View source: R/pre_process.R

Description

This function provides a mechanism to divide large data into small chunks.

Usage

1
pre_process(data, init_res_status_data = NULL, n_groups = 1)

Arguments

data

A dataframe object.

init_res_status_data

The raw data of the initial residence status in the format of data frame.

n_groups

The number of groups required to be returned.

Value

A list object contains reformatted raw data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## to suppresse log messages to the console
migrbc::initialize_logger(log_level = 1)

number_of_people = 10
person_data <- migrbc::setup_random_test_data(number_of_people, 
                                              initial_date = '2001-01-01', 
                                              numJourneys = 5,
                                              min = 0, 
                                              max = 10)
crossings <- migrbc::pre_process(person_data, n_groups = 10)
crossings

migrbc documentation built on July 1, 2020, 8:14 p.m.