read_ftw: Read clipped Fietstelweek data resulting of 'clip_ftw'

Description Usage Arguments Value

View source: R/read.R

Description

Reads the resulting files created by the clip_ftw function and loads them into an object of class ftw_atmp when loading data only for one year, or into an object of class ftw_tmp when loading data for both years.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
read_ftw(directory, year, study_area)

## S3 method for class 'ftw_atmp'
print(x, ...)

## S3 method for class 'ftw_tmp'
print(x, ...)

## S3 method for class 'ftw_atmp'
summary(object, ...)

## S3 method for class 'ftw_tmp'
summary(object, ...)

Arguments

directory

filepath to the directory where the Fietstelweek data is stored. Same filepath as the one used for the clip_ftw function.

year

desired year of data, can either be 2015 or 2016, which will return an object of class ftw_atmp for "atemporal" analysis; or both c(2015,2016), which will return an object of class ftw_tmp for "temporal" analysis (comparison between years).

study_area

name of the municipality or province the data was clipped to. The parameter is case sensitive and prone to fail with spelling mistakes.

x

object of class ftw_atmp or ftw_tmp

...

ignored

object

object of class ftw_atmp or ftw_tmp

Value

Returns either and object of class ftw_atmp for "atemporal" analysis when year is 2015 or 2016, or into an object of class ftw_tmp for "temporal" analysis (comparison between years) when year is c(2015,2016).

The summay method returns the total number of edges, nodes and trips of the data by year.


loreabad6/ftw documentation built on March 10, 2021, 1:19 p.m.