**Alstat R Blog**, and kindly contributed to R-bloggers)

I have been working at Provincial Statistics Office of Tawi-Tawi (Philippines) which was part of the training on my OJT (On-Job Training). One of the requirements of the training is at least 80 hours of services, so I decided to work from April 19 to May 18, 2012, making it sure to surpass the required hours.

In that office, there is this daily records of our attendance which has a Sign in and Sign Out columns, where we actually put the time we arrive and dismiss, respectively. The first time I notice this, I started to get excited and very particular on the time I input, because I know that at the end of my training I’ll be collecting this and make some analysis.

Here’s the first plot below, which shows the Arrival and Dismissal time.

The next plot below shows the number of hours I’ve spent in the morning (8:00 am – 12:00 pm).

The trend of the blue lines are not consistent, this is expected since I was not able to maintain my arrival time, As you’ve known earlier that I was late in most days. By the way, there’s no services during weekends, but as you notice on April 28 which is Saturday I’ve spent 4.2 hours, this was actually a general cleaning in the office, and so we the trainees were ordered to report on the said date to help on cleaning also, and in change for that is nonworking day in April 30, that’s Monday. But that didn’t happen to me, since I was given a special task by my boss, and was told to report on Monday morning, and that’s why I’ve spent 3.8 hours in that day. In the average, I’ve spent about 4 hours in the morning, black horizontal line in the plot represents it.

Here’s the plot of the hours I’ve spent in the afternoon of my training, that’s from 1:00 pm to 5:00 pm. And the blank in the plot is a missing value, this is because I only reported in the morning of the April 30.

And on the average, I spent about 3.7 hours in the afternoon of my training, as shown in the plot. Now the longest hours recorded in my entire training in the afternoon is 5 hours, this is because of the whole day general cleaning which happened on April 28. And the lowest number of hours I’ve spent happened on May 10, this is because I arrived at 2:00 pm in that day.

And for overall, the number of hours I’ve spent in a day is shown below. And on the average, I’ve spent about 7.4 hours a day.

There is a huge decline on April 30, that’s 3.8 hours only a day. Well, that’s because I only reported in the morning. Finally, the largest number of hours ever recorded on my training was on April 28, since it was a whole day cleaning.

### R Codes

**leave a comment**for the author, please follow the link and comment on his blog:

**Alstat R Blog**.

R-bloggers.com offers

**daily e-mail updates**about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...