Jump to content
We've recently updated our Privacy Statement, available here. ×

R Function to Count Business Days


S H

Recommended Posts

Hello,

I'm trying to solve a problem in Spotfire where I want to count the days between two DateTime columns, only counting business days (no weekends). Several people have suggested elsewhere that an R function could be the way to go on this, and so I have been trying to get this to work. I'm coming at this with zero R experience whatsoever. This is the function I have defined:

removeWeekend = function (a,b) {

date_range

Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...