is there a way in R to assign a format to variables of a dataframe (I am looking for something comparable to the OUTFORMAT in SAS.)?
The canonical advice (like here ) is to use format(..) or formatC(..), but this appears to create just a character-variable. That is fine for printing once, but makes coding a bit burdensome for a sequence like - printing - manipulating - printing again -
Thanks in advance.