Probably this is a stupid question, but I can't figure out how to transfer this dataframe in R:
employee <- c('John Doe','John Doe','Jolie Hope','Jolie Hope')
salary <- c(2100,2200,1900,1800)
month <- c("January","Febraury","January","Febraury")
employee.data <- data.frame(employee,salary,month)
To this one in R:
Of course I can change the construction of the dataframe in this example. However my real data has another source ;). Therefore I would like to do this with some simple commands.