Learn R Programming

taRifx (version 1.0.6.2)

japply: japply: Judiciously sapply to only selected columns

Description

japply is a wrapper around sapply that only sapplys to certain columns

Usage

japply(df, sel, FUN = function(x) x, ...)

Arguments

df

data.frame

sel

A logical vector or vector of column numbers to select

FUN

The function to apply to selected columns

Pass-alongs to sapply

Value

A data.frame