View source: R/ExportedFuncs.R
rowMatch | R Documentation |
Count the frequency of a row vector in a data frame
rowMatch(df, vec = NULL)
df |
a data frame or matrix |
vec |
the vector for matching |
count the number of vector vec in the data frame
row.no row numbers of the vector vec in the data frame
df <- data.frame(V1=c(1L,2L),V2=LETTERS[1:3],V3=rep(1,12))
rowMatch(df,c(2,"B",1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.