0

I was wondering how I could view certain lines of data based on specific data i.e. good for viewing anomalies in results.

E.g. I have the following results from the command table(df$A)

     2      3      4      5      6     19    
143914  52194  30856  10662   2901      1   

I'm surprised by the 1 observation where df$A=19. How can I see this observation easily in the console without having to make a subset (x<-subset(df, df$A==19)) ?

Thanks in advance

4

1 回答 1

1

如果您的目标是仅在交互式会话中查看输出,并且您对存储该值不感兴趣,则可以使用[“交互式”子集并查看结果:

df[df$A == 19, ]
于 2013-11-06T10:45:09.017 回答