Learn R Programming

pharmr (version 2.2.0)

set_index: Set index

Description

Set a multiindex for a dataframe.

The index columns will be used when using the data.frame in a pharmpy call

Usage

set_index(df, colnames)

Arguments

df

A data.frame

colnames

An array of column names