Learn R Programming

rtemis (version 1.4.3)

inc: Select (include) columns by character or numeric vector.

Description

Select (include) columns by character or numeric vector.

Usage

inc(x, idx)

Value

data.frame, tibble, or data.table.

Arguments

x

tabular data.

idx

Character or numeric vector: Column names or indices to include.

Author

EDG

Examples

Run this code
inc(iris, c(3, 4)) |> head()
inc(iris, c("Sepal.Length", "Species")) |> head()

Run the code above in your browser using DataLab