Learn R Programming

GGIR (version 2.6-0)

getStartEnd: Generate start and end time of a day

Description

Generate start and end time of a day when working with argument selectdaysfile in g.part1. The user provides a date and a start hour which is used to generate the timestamps of the start hour minutes 5 minutes and the start hour plus 24 hours. Function not designed for direct use by package user.

Usage

getStartEnd(d, startHour, outputFormat = "%d/%m/%Y %H:%M:%S",
  tz = "Europe/London")

Arguments

d

character with date (without time) format

startHour

Hour that analysis starts at

outputFormat

Characterstring indicating outputFormat

tz

Same as desiredtz in g.part1

Value

Data.frame with two columns: a start time five minutes before startHour on day d and an endtime 24 hours after startHour

Examples

Run this code
# NOT RUN {
startandendtime = getStartEnd(d="20/5/2017", startHour=4)
# }

Run the code above in your browser using DataLab