logDataSet: Creating a Data Set with the Logarithms of the Original...

Description Usage Arguments Author(s) Examples

View source: R/logDataSet.R

Description

This function creates a data set with the logarithms of the original variables.

Usage

1
logDataSet( data, varNames, varNamesNum = NULL  )

Arguments

data

a data frame containing the data (possibly a panel data frame created with pdata.frame).

varNames

vector of character strings that indicates names of variables in the data frame. The logarithm of these variables are included in the returned data frame.

varNamesNum

optional vector of character strings that indicates names of further variables in tha data frame. In case of numeric variables, the logarithms of these variabes are included in the returned data frame. In case of factor of logical variables, these variabes are included in the returned data frame without any transformation.

Author(s)

Arne Henningsen

Examples

1
2
3
   data( "germanFarms" )
   datLog <- logDataSet( germanFarms, c( "vAnimal", "vOutput", "vVarInput" ) )
   summary( datLog )

micEcon documentation built on Jan. 7, 2021, 3:01 p.m.

Related to logDataSet in micEcon...