Convert time-period arguments of r2cron from R expressions to the most appropriate cron expression format and paste them together.

.as_cron(x, p)

Arguments

x

The user's input for a time period argument in the r2cron function

p

Valid cron time periods used in the r2cron function.

Value

A character string.