Description Usage Arguments Value Examples
jDayCol takes as input a date.frame object or a data.frame object name (dfData
), a column name (dfColName
), and the date format (dateFormat
) of the column dfColName
and inserts a new column in the data.frame object containing the day of the year corresponding to the entries in the column dfColName
. The location of the new column is dictated by endRep
.
1 | jDayCol(dfData, dfColName, dateFormat, endRep = "end")
|
dfData |
a data.frame object or a character string indicating the name of the data.frame object. |
dfColName |
a string of class character indicating the name of the column to be handled. The entries in this column must be dates in the date format given by the parameter |
dateFormat |
a character string indicating the date format of the column |
endRep |
a character string (default: "end") indicating whether to append the new columns at the end (endRep=="end") or replace the original columns with the respective new columns (endRep=="rep") or insert the new columns right after the respective columns (endRep=="after") in the data.frame object |
jDayCol updates the data.frame object dfData
by adding a new column containing the day of the year corresponding to the entries in column dfColName
of the original data.frame object. The entries in the new column are integers in the range [1,366]
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.