How can I use gsub and grep to calculate the weighted average in R?

前端 未结 0 1316
盖世英雄少女心
盖世英雄少女心 2021-01-27 06:55

I want to calculate the weighted average of different columns with different names This is my dataset

weight4 <- c(4,2,3,4,5,6)
height4 <- c(4,2,3,3,5,8)
si         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题