R rowSums()

1 개요[ | ]

R rowSums()
  • Form Row Sums
행렬
m <- matrix(1:6, nrow=3, ncol=2)
m
rowSums(m)
데이터프레임
df <- read.table( header=TRUE, stringsAsFactors=FALSE, text="
English Math
     30   60
     40   70
     50   80
     60   90
")
df
rowSums(df)
apply(df, 1, sum)

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}