Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
The
foverlaps()function can only work with interval columns that are numeric (integer, double, integer64).When trying
foverlaps()with character interval columns you get an error message telling you this:When trying with a factor, you get a cryptic error message:
The same is true if (for whatever reason) you have numeric interval columns coded as factors:
In these cases, the
foverlaps()function should throw the first error message stating that it cannot work with factors