Skip to content
Prev 44397 / 398513 Next

column names in matrix vs. data frame in R 1.8

Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:
However, nothing is keeping you/us from defining a function fix.names
(say) so that you could do 

  names(dataframe) <- fix.names(nm)

(I have a sense of deja vu about this: Some other instance, where
adding arguments to an assignment function was actually possible, but
on closer thought, the wrong thing to do.)