as_mtp: Converts a data frame to a data frame of class mtp

Description Usage Arguments Value Examples

Description

Converts a data frame to a data frame of class mtp

Usage

1
as_mtp(df, type = "raw")

Arguments

df

a data frame to convert. It must be a data frame containing the following variables: Hor., Ver., Name, hours, and value.

type

is an attribute to be set to show what kind of manipulations have been done (currently not used)

Value

Returns a df of class mtp

Examples

1
2
3
4
5
6
df_mtp <- xls_read(path = system.file("extdata", "crystalban_salt_01.xls", package = "RAPr"))
mtp <- df_mtp$mtp
class(df_mtp)
str(df_mtp)
df_mtp
summary(df_mtp)

JannikVindeloev/RAPr documentation built on May 7, 2019, 10:21 a.m.