/* * http://sosal.kr/ * made by so_Sal */ names(vector)rownames(matrix)colnames(matrix) 1. 벡터에 이름 붙이기 > x names(x)NULL > names(x) xA B C D E 1 2 3 4 5 > x['C']C 3 > names(x)[1] "A" "B" "C" "D" "E"> 2. 매트릭스에 이름 붙이기 > CountTable CountTable [,1] [,2][1,] 189 10845[2,] 104 10933> > rownames(CountTable) colnames(CountTable) CountTable No heart attack Heart attackPlacebo 189 10845Aspirin 104 10933> > ..