Displaying 1 result from an estimated 1 matches for "ay3".
Did you mean:
a3
2012 Apr 29
2
Count number of rows in a matrix with a character pattern
Hi,
I have a large data set that I input as a matrix, where I have 1:x rows
with names AX, then x+1: y rows named AY, etc. The idea is that I have to
count how many rows exactly I have with name AX and how many I have with
name AY (or find which row numbers have names AX). Is there any way in R to
count a number of rows with a name matching a required pattern?
Thanks in advance,
Katie
--