Count number of rows matching a criteria

后端 未结 8 882
渐次进展
渐次进展 2020-11-29 05:01

I am looking for a command in R which is equivalent of this SQL statement. I want this to be a very simple basic solution without using complex functions OR dplyr type of pa

8条回答
  •  情歌与酒
    2020-11-29 05:31

    With dplyr package, Use

     nrow(filter(mydata, sCode == "CA")),
    

    All the solutions provided here gave me same error as multi-sam but that one worked.

提交回复
热议问题