So this is a snippet of a bigger code so please don\'t misunderstand that am using apply instead of transform if am using only 1 column variable. In real case am apply funct