View source: R/personal_functions.R
Time.Keeping | R Documentation |
This function keeps the punched hours for hourly jobs.
Time.Keeping(
Hours.Punch,
First.Date = NULL,
Last.Date = NULL,
Exclude.Weekends = FALSE,
Target.Hours = NULL
)
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. |
This is a personal function of the package author. So, it won't make sense to others.
Three data.frames called "Time.Detail", "Total.Days", "Total.Weeks", and a vector "total.hours".
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.