define_ejEvent: Creates a event definition

Description Usage Arguments

View source: R/data.frame.R


Simplifies the definition of events from columns within a dataframe


define_ejEvent(id = NA, name = NULL, date = NULL, location = NULL,
  attributes = NULL)



A character string naming the column that defines the id for a event. May be NA, and if so will be automatically generated.


Either a character string with the event name. Or the name of the column that contains names for events as a character string. If the column name is found in the input data.frame to then the data in the column is used otherwise the string itself is used. Event names might be things such as infection, swab, hospital admission,etc.


A character string naming the column that defines the date an event occured. This should be in POSIXct format. May be NA.


A list with entities x, y and proj4string. x and y should be character strings naming the columns where the x and y of the location are defined. crs may be "" or a proj4string.


A character vector naming the columns for attributes of the event. The attributes will be named after the columns, with type taken from column type.

Hackout2/repijson documentation built on May 6, 2019, 9:48 p.m.