getStartEndNumeric: Generate start and end page of a day

Description Usage Arguments Value Author(s) Examples

View source: R/getStartEndNumeric.R

Description

Generate start and end page 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 pages of the start hour minutes 5 minutes and the start hour plus 24 hours. Function not designed for direct use by package user.

Usage

1
  getStartEndNumeric(d, hhr, startHour = 4)

Arguments

d

Character with date (without time) format

hhr

GENEActiv::header.info(f) output

startHour

Hour that analysis starts at

Value

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

Author(s)

Joe Heywood <j.heywood@ucl.ac.uk>

Examples

1
2
3
4
5
## Not run: 
hhr = GENEActiv::header.info("C:/myfile.bin")
mystartandendpage = getStartEndNumeric(d="20/5/2017", hhr, startHour = 4)

## End(Not run)

PeteJWatson/ggircal documentation built on Nov. 24, 2021, 11:14 a.m.