How can I create multiple column by type?
Here is what I got:
employee <- c('John Doe','Peter Gynn','Jolie Hope')
salary <- c(21000, 23400, 26800)
startdate <- as.Date(c('2010-11-1','2008-3-25','2007-3-14'))
employ.data <- data.frame(employee, salary, date)
This is what I want:
Date Salary John Peter Jolie
xxx xxx xxx xxx xxx