Definition of function transform_log() and testing of the output with null values: Function code:  Package installation:  Function testing: 