Is there any column in df with name "end"? If there is, change its name to "end_old" so that it will conflict with code in other parts of ICAMS package.
df
Useful links