Count number of rows matching a criteria

后端 未结 8 892
渐次进展
渐次进展 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:29

    Just give a try using subset

    nrow(subset(data,condition))
    

    Example

    nrow(subset(myData,sCode == "CA"))
    

提交回复
热议问题