How to sum data.frame column values?

后端 未结 4 1597
梦谈多话
梦谈多话 2020-12-07 15:13

I have a data frame with several columns; some numeric and some character. How to compute the sum of a specific column? I’ve googled for this and I see nume

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 15:56

    When you have 'NA' values in the column, then

    sum(as.numeric(JuneData1$Account.Balance), na.rm = TRUE)
    

提交回复
热议问题