Time.Keeping: Keeping Time for Hourly Jobs

View source: R/personal_functions.R

Time.KeepingR Documentation

Keeping Time for Hourly Jobs

Description

This function keeps the punched hours for hourly jobs.

Usage

Time.Keeping(
  Hours.Punch,
  First.Date = NULL,
  Last.Date = NULL,
  Exclude.Weekends = FALSE,
  Target.Hours = NULL
)

Arguments

Hours.Punch

character. The path of the time keeping .txt file.

First.Date

character. Default if NULL. The first date of time keeping. If NULL, then it will be generated from the data.

Last.Date

character. Default if NULL. The last date of time keeping. If NULL, then it will be generated from the data.

Exclude.Weekends

logical. If TRUE, the weekends will be excluded from the data.

Target.Hours

numeric. Default is NULL. If a numeric value is given, the remaining hours for the current week is messaged.

Details

This is a personal function of the package author. So, it won't make sense to others.

Value

Three data.frames called "Time.Detail", "Total.Days", "Total.Weeks", and a vector "total.hours".

Author(s)

Omer Kara

Examples

## Not run: 
Time.Keeping(Hours.Punch = "./hours_punch.txt")
Time.Keeping(Hours.Punch = "./hours_punch.txt", Exclude.Weekends = FALSE, Target.Hours = NULL)
Time.Keeping(Hours.Punch = "./hours_punch.txt", First.Date = "2016-08-16", Target.Hours = 20)

## End(Not run)


omerkara/okara documentation built on Nov. 21, 2023, 7:56 p.m.