Skip to content

Instantly share code, notes, and snippets.

@micstr
micstr / EOMONTH.R
Created May 15, 2020 12:23
Find out day of month EOMONTH in Excel
library(lubridate)
lubridate::ceiling_date(input$leaddaterange[1], "month") - 1
@micstr
micstr / checkDFnamesidentical.R
Created May 20, 2020 12:36
Check names in two tables are the same (say pre merge)
# identical check - Thanks Akrun
#https://stackoverflow.com/q/26566251/4606130
#RIGHT
identical(sort(names(data.store)), sort(names(data.input))))
# TRUE
#WRONG
# I had below which is flummoxed by order