Skip to contents

Create a matrix for input or output variables that can be used in DEA models from a supplied data.frame

Usage

create_matrix(df, columns, id, normalize = FALSE)

Arguments

df

A data.frame

columns

A vector of column names that should be included in the matrix

id

The name of the column with the DMU IDs

normalize

If TRUE, all columns will be normalized with a mean of 1