R语言修改vector、matrix、dataframe列名

vector:

names(vector)=c('zhang','li','liu')

 

matrix、dataframe:

colnames(m/d)=c('zhang','li','liu')

posted on 2017-02-15 17:07  湘雨jay  阅读(2401)  评论(0编辑  收藏  举报