Change library from reshape to reshape2 to match the syntax