Learn R Programming

RTransProb (version 0.3.3)

expandTransData: Reshape Data to 'Wide' Data Format

Description

This function reshapes time series vector of transition counts with elements of both 'wide' and 'long' data Formats. Each non-Zero weighted row is expanded to show one row per record.

Usage

expandTransData(transData, wgtname)

Arguments

transData

dataframe containing the time series vector of transition counts.

wgtname

weight.

Value

The output a dataframe of transition data in 'wide' format.