Rè¨èªã§ä½æ¥ããã¦ãã¦ãã¤ã¾ããªããã¨ã«æéãããã£ãã®ã§ã次å以éã®ä½æ¥ç¨ã«ã¡ã¢ãã¦ããã¾ãã ååãå¤æ°åã®åå¾ã¨è¨ç½®ï¼colnames(),names() Rè¨èªã§ã¯ããã¼ã¿è¡åãä¿åã§ãããªãã¸ã§ã¯ããäºç¨®é¡ããã¾ããè¡å(matrix)ã¨ãã¼ã¿ãã¬ã¼ã (data.frame)ã§ããã©ã¡ããcolnames()ãnames()ã§ååãå¤æ°åãåå¾ã»è¨å®ã§ãã¾ããã§ããããããGetSeté¢æ°ã¨ã¯éããå°ãã¯ã»ãããã¾ããããããã®ãªãã¸ã§ã¯ãã§colnames()ã®åä½ãè¦ã¦ã¿ã¾ããã*1ã è¡åãªãã¸ã§ã¯ãã®å ´å ã¾ãmatrix()ã§ãªãã¸ã§ã¯ããä½ã£ã¦ã¿ã¾ãã mat <- matrix(1:12, nrow = 3, ncol = 4) print(data) [,1] [,2] [,3] [,4] [1,] 1 4 7 10 [2,] 2 5 8 11 [3,] 3 6
{{#tags}}- {{label}}
{{/tags}}