How can I scale INT values in a data frame to values from 0 to 100? For Example this DF:
> employee <- c('John Doe','Peter Gynn','Jolie Hope')
> value <- c(1, 3, 365)
> startdate <- as.Date(c('2010-11-1','2008-3-25','2007-3-14'))
> employ.data <- data.frame(employee, value, startdate)
> employ.data$value <- as.integer(employ.data$value)
How can I scale the value to a range between 0 and 100. The threshold should be 50. So my output should look like this:
> employ.data
employee value startdate
1 John Doe 1 2010-11-01
2 Peter Gynn 3 2008-03-25
3 Jolie Hope 100 2007-03-14