I have a problem with the follwoing error message
invalid regular expression '([a-Z]*)_(.*)', reason 'Invalid character range'
so the line of code which causes the error is
if(tide=="long") names(problem) <- sub("([a-Z]*)_(.*)","\\2",problem)
so if long is selected for the parameter tide in the function the names of problem shall be defined ....
but when I enter function(...,tide="long",..)
the above mentioned error message is displayed.