Date transformation Format R -


i have column in df

date 1992 1992 1992 1992 1993 1993 1993 

it integer or factor , transfomed date

reshaped.test1$year <- as.date(as.factor(reshaped.test1$year), "%y") 

but out put

 date 1992/03/28 1992/03/28 1992/03/28 1992/03/28 1993/03/28 1993/03/28 

the class (df$date) date fund solution tojust maintain year

df$date <- format(f,'%y') 

but class changed

this problem same work in q monthly frequent date


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -