added functions.R dependencies: zoo, psych