Dynamically update an argument

Library(NHSRPlotthedots)

p <- ptd_spc(.data = dataset, value_field = "metric",date_field = ReportingDate, improvement_direction = "decrease",rebase =as.Date("2021-08-14"))

I’m trying to understand if there is a way to dynamically update the rebase argument for example

x= "2022-05-12"

p <- ptd_spc(.data = dataset, value_field = "metric",date_field = ReportingDate, improvement_direction = "decrease",rebase =as.Date("x"))

close; just dont quote "x",

... , improvement_direction = "decrease",rebase =as.Date(x))

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.