Ok that worked, thank you so much! I am having one problem when I am trying to view it though. It runs on the function correctly, but gives me an error when I try to view the same code. Sorry if it's not the cleanest most efficient code
on_off_generator("KOBE.WILLIAMSON", decstats, Included = ("DARRION.TRAMMELL")) %>%
select(Status, Mins, oMins, dMins, oPOSS, dPOSS, ORTG, DRTG, NETRTG) %>%
mutate(Status = tolower(Status), Status = tocamel(Status, upper = T, sep = " "))
View(on_off_generator("KOBE.WILLIAMSON", decstats, Included = ("DARRION.TRAMMELL"))) %>%
select(Status, Mins, oMins, dMins, oPOSS, dPOSS, ORTG, DRTG, NETRTG) %>%
mutate(Status = tolower(Status), Status = tocamel(Status, upper = T, sep = " "))
> on_off_generator("KOBE.WILLIAMSON", decstats, Included = ("DARRION.TRAMMELL")) %>%
+ select(Status, Mins, oMins, dMins, oPOSS, dPOSS, ORTG, DRTG, NETRTG) %>%
+ mutate(Status = tolower(Status), Status = tocamel(Status, upper = T, sep = " "))
Status Mins oMins dMins oPOSS dPOSS ORTG DRTG NETRTG
1 Kobe Williamson On 299.366 153.684 145.683 535 534 97.009 92.322 4.687
2 Kobe Williamson Off 89.483 45.196 44.286 184 178 111.957 93.820 18.136
> View(on_off_generator("KOBE.WILLIAMSON", decstats, Included = ("DARRION.TRAMMELL"))) %>%
+ select(Status, Mins, oMins, dMins, oPOSS, dPOSS, ORTG, DRTG, NETRTG) %>%
+ mutate(Status = tolower(Status), Status = tocamel(Status, upper = T, sep = " "))
Error in UseMethod("select") :
no applicable method for 'select' applied to an object of class "NULL"