The count()
function in plyr
does what you want:
library(plyr)
count(mydf, "MONTH-YEAR")
More Related Contents:
- Dynamically select data frame columns using $ and a character value
- Simultaneously merge multiple data.frames in a list
- Count number of rows within each group
- Dictionary style replace multiple items
- How to plot all the columns of a data frame in R
- Opposite of %in%: exclude rows with values specified in a vector
- Select rows with min value by group
- Shifting non-NA cells to the left
- Omit rows containing specific column of NA
- Repeat rows of a data.frame N times
- For each row in an R dataframe
- Replace all occurrences of a string in a data frame
- How to add a cumulative column to an R dataframe using dplyr?
- Get last row of each group in R [duplicate]
- Same function over multiple data frames in R
- Create empty data frame with column names by assigning a string vector? [duplicate]
- Dataframe create new column based on other columns
- Last Observation Carried Forward In a data frame? [duplicate]
- Determine the data types of a data frame’s columns
- Changing Million/Billion abbreviations into actual numbers? ie. 5.12M -> 5,120,000 [duplicate]
- What is difference between dataframe and list in R?
- Define dimensions of an empty dataframe
- Merge overlapping ranges into unique groups, in dataframe
- Deleting specific rows from a data frame
- Reshape a dataframe to long format with multiple sets of measure columns [duplicate]
- Undefined columns selected when subsetting data frame
- Difference between `names(df[1])
- How to create a new variable in a data.frame based on a condition?
- Data.frame Merge and Selection of values which are common in 2 Data.frames
- Interpolating timeseries