Learn R Programming

bikedata (version 0.2.4)

bike_match_matrices: Match rows and columns of distance and trip matrices

Description

Match rows and columns of distance and trip matrices

Usage

bike_match_matrices(mat1, mat2)

Arguments

mat1

A wide- or long-form trip or distance matrix returned from bike_tripmat or bike_distmat.

mat2

The corresponding distance or trip matrix.

Value

A list of the same matrices with matching start and end stations, and in the same order passed to the routine (that is, mat1 then mat2). Each kind of matrix will be identified and named accordingly as either "trip" or "dist". Matrices are returned in same format (long or wide) as submitted.