Description Usage Arguments Value
write_time
takes a time provided by a specified user and writes that
time to the corresponding cell in a data spreadsheet given by ss
.
1 2 | write_time(ss, d, time, user_col, date = Sys.Date(), shift = 0,
overwrite = FALSE)
|
ss |
a googlesheet object (see |
d |
A data frame version of the "Data" worksheet in spreadsheet
|
time |
Either an integer corresponding to a number of seconds elapsed (e.g., 42 or 142), or a character string in the form:
Any any number of hours, minutes, or seconds are valid (i.e.,
|
user_col |
A character string providing a username, which should correspond to a column in the spreadsheet. |
date |
an optional parameter to specify the date in a YYY-MM-DD format.
Default is |
shift |
An integer to define the number of days by which the data entry date should be shifted. Default is 0. The day after today (tomorrow) is +1, yesterday is -1, etc. |
overwrite |
A boolean to determine whether existing values in the cell
should be overwritten. Default is |
The function returns a message, stating which cell was written to, the value that was written, and if the cell was overwritten, a message to inform the user that the previous value was overwritten.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.