trimDataTemporalMap

0th

Percentile

Trims a DataTemporalMap

Trims a DataTemporalMap object between an start and end date. If one is not specified it takes as default the first/last chronological date in the input DataTemporalMap.

Usage
trimDataTemporalMap(dataTemporalMap,
  startDate = min(dataTemporalMap@dates),
  endDate = max(dataTemporalMap@dates))

# S4 method for DataTemporalMap trimDataTemporalMap(dataTemporalMap, startDate = min(dataTemporalMap@dates), endDate = max(dataTemporalMap@dates))

Arguments
dataTemporalMap

of class DataTemporalMap.

startDate

Date indicating the start date to trim from.

endDate

Date indicating the end date to trim to.

Value

A DataTemporalMap object between the specified dates.

Aliases
  • trimDataTemporalMap
  • trimDataTemporalMap,DataTemporalMap-method
Examples
# NOT RUN {
load(system.file("extdata",
                 "variabilityDemoNHDSdiagcode1-phewascode.RData",
                  package="EHRtemporalVariability"))

probMapTrimmed <- trimDataTemporalMap( 
                         dataTemporalMap = probMaps[[1]],
                         startDate       = "2005-01-01",
                         endDate         = "2008-12-01"
)
# }
Documentation reproduced from package EHRtemporalVariability, version 1.0, License: Apache License 2.0 | file LICENSE

Community examples

Looks like there are no examples yet.