Update tablefunctions.R