Learn R Programming

Seurat (version 2.1.0)

RemoveFromTable: Remove data from a table

Description

This function will remove any rows from a data frame or matrix that contain certain values

Usage

RemoveFromTable(to.remove, data)

Arguments

to.remove

A vector of values that indicate removal

data

A data frame or matrix

Value

A data frame or matrix with values removed by row

Examples

Run this code
# NOT RUN {
df <- data.frame(
  x = rnorm(n = 100, mean = 20, sd = 2),
  y = rbinom(n = 100, size = 100, prob = 0.2)
)
nrow(x = df)
nrow (x = RemoveFromTable(to.remove = 20, data = df))

# }

Run the code above in your browser using DataLab