I have a dataframe which includes col1(Counts) and col2(Date)
df<-data.frame(col1=c(1,2,3,4,16,0),col2=c('10-12-2019','11-12-2019','13-01-2020','14-02-2020','01-03-2020','01-04-2020'))
I want to create another column range(0-100) based on col1 for unique dates, but when I do that it's giving me random numbers instead of considering the weight of col1
df$col3<-runif(df$col1,min=0,max=100)
how to do it?
Does this work, this works on a constant change linearly for each unit increase in col1.