View source: R/f_data_processing.R
| available | R Documentation |
The function returns all values from the indicated column (defined by the type parameter) which occur at least once in one of the compared periods or in a given time interval.
available(data, period1, period2, type = "prodID", interval = FALSE)
data |
The user's data frame. It must contain a column |
period1 |
The first period (as character) limited to the year and month, e.g. "2019-03". |
period2 |
The second period (as character) limited to the year and month, e.g. "2019-04". |
type |
This parameters defines the column which is used in the procedure. Possible values of the |
interval |
A logical parameter indicating whether the procedure is to work for the whole time period between |
The function returns all values from the indicated column (defined by the type parameter) which occur at least once in one of the compared periods or in a given time interval. Possible values of the type parameter are: retID, prodID, codeIN, codeOUT or description. If the interval parameter is set to FALSE, then the function compares only periods defined by period1 and period2. Otherwise the whole time period between period1 and period2 is considered.
available(milk, period1="2018-12", period2="2019-12", interval=TRUE)
available(milk, period1="2018-12", period2="2019-12", type="description")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.