Over the past few hours, I've found several questions on here regarding an R script that works just fine outside of a function, but that returns an "object not found" error for an argument once the code is refactored to include functions. Unfortunately, the resolution to these errors seems to be highly package and context specific, so I have to throw my own, nlmer-specific problem into the fray. Over the past few hours, I've found several que