Fixed the error caused by using 'ddply' to get email frequency counts. Now using 'table', which is a better choice anyway