Learn R Programming

EpiModel (version 0.25)

dropdf: Drop Variables from a Data Frame

Description

This function drops named variables from a data frame

Usage

dropdf(df, vars)

Arguments

df
data frame with multiple variables
vars
vector of variables in character format

Examples

Run this code
w <- x <- y <- z <- 1:10
df <- data.frame(w,x,y,z)
( newdf <- dropdf(df, c('x', 'y')) )

Run the code above in your browser using DataLab