readTemporalities: Input of urban temporalities

Description Usage Arguments Value Author(s) See Also Examples

Description

Reads a file containing urban temporalities in table format and returns a list of data frame(s) from it.

Usage

1
readTemporalities(file, duration.event = 60, verbose = 1)

Arguments

file

the name of the file which the data are to be read from. Space types are in columns and each row corresponds to a specific time. The first line (header) should contain column names, and columns should be separated by a tabulation:

  • first column: should be named "date" and formatted as year-month-day, for instance "2017-04-23" (a single file can contain data collected at different days);

  • second column: should be named "time" and formatted as hour:minute, for instance "17:02";

  • third column: corresponds to the first space type;

  • fourth column: corresponds to the second space type (if any);

  • and so on, if there are several space types.

duration.event

duration of a ponctual event, in seconds

verbose

verbosity level (0/1/2)

Value

list of data frame(s), one per space type

Author(s)

Timothee Flutre

See Also

readAppearances(), plotTemporalities()

Examples

1
2
3
4
5
6
7
8
9
## retrieve the path to the example data file provided with the package
f1 <- system.file("extdata", "Gibert_2014_data-PhD-thesis.tsv",
                  package="UrbanTempo")

## read the file
tpr <- readTemporalities(file=f1)

## for each space type, look at its temporality types
lapply(tpr, function(x){unique(x$id)})

marieflutre/UrbanTempo documentation built on June 14, 2019, 4:06 p.m.