colwise {plyr}R Documentation

Column-wise function

Description

Turn a function that operates on a vector into a function that operates column-wise on a data.frame

Usage

colwise(.fun, .if = function(x) TRUE)

Arguments

.fun function
.if should the function with wrapped with failwith(NA)
function that tests columns for inclusion

Details

catcolwise and numcolwise provide version that only operate on discrete and numeric variables respectively

Author(s)

Hadley Wickham <h.wickham@gmail.com>


[Package plyr version 0.1.1 Index]