That means cutpoints is the name of some function, even when it may also be the name of some user-created object. A bare function (just the name without any arguments) is referred to in R as a closure, and those aren't objects that can be subset. So, find the offending variable and rename to Cutpoints, or cut_points or cutpoints_ or the_cuts, anything that does not conflict.