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 -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -