There might be a cleverer way to go about this, but
intersect(intersect(a,b),c)
will do the job.
EDIT: More cleverly, and more conveniently if you have a lot of arguments:
Reduce(intersect, list(a,b,c))
More Related Contents:
- R memory management / cannot allocate vector of size n Mb
- Test if a vector contains a given element
- Counting the number of elements with the values of x in a vector
- Finding All Positions for Multiple Elements in a Vector
- List distinct values in a vector in R
- Convert a dataframe to a vector (by rows)
- Reshaping data.frame from wide to long format
- ggplot with 2 y axes on each side and different scales
- Quickly reading very large tables as dataframes
- Counting unique / distinct values by group in a data frame
- Formatting Decimal places in R
- ggplot2 line chart gives “geom_path: Each group consist of only one observation. Do you need to adjust the group aesthetic?”
- How to name variables on the fly?
- Cleaning up factor levels (collapsing multiple levels/labels)
- How to generate permutations or combinations of object in R?
- Numeric comparison difficulty in R
- Use of ~ (tilde) in R programming Language
- Combine two or more columns in a dataframe into a new column with a new name
- Conditional merge/replacement in R
- Subset rows in a data frame based on a vector of values
- How to plot a function curve in R
- Converting two columns of a data frame to a named vector
- calculating mean for every n values from a vector
- Display exact value of a variable in R
- Is there anything wrong with using T & F instead of TRUE & FALSE?
- Split delimited single value character vector
- R split numeric vector at position
- How to return 5 topmost values from vector in R?
- How to reverse order a vector?
- How do you create vectors with specific intervals in R?