melt cast data.table

Published onesixx on

cast하면 key 가 생긴다.

R

melt.data.table() & dcast.data.table()

reshape2 package의 함수를 data.table에 맞게 수정된 dcast & melt

data <- melt.data.table(data, id.vars = c(“A”, “B”, “C”))

recast <- dcast.data.table(result, id ~ Param)

R
Categories: Reshaping

onesixx

Blog Owner

Leave a Reply

Your email address will not be published.