get_data_clustering: Get data for calculating the distance matrix

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Get data for calculating the distance matrix

Usage

1
2
get_data_clustering(data, profile_type, var1_aggregate_by, 
    var2_aggregate_by)

Arguments

data

processed profile data

profile_type

type of data used for calculating the distance matrix. Either "binary" (consider only the presence/absence status of orthlogs), or "var1"/"var2" for taking values of the additional variables into account.

var1_aggregate_by

aggregate method for VAR1 (min, max, mean or median)

var2_aggregate_by

aggregate method for VAR2 (min, max, mean or median)

Value

A wide dataframe contains values for calculating distance matrix.

Note

Documented by Vinh Tran (tran@bio.uni-frankfurt.de)

Author(s)

Carla Mölbert (carla.moelbert@gmx.de)

See Also

from_input_to_profile

Examples

1
2
3
4
5
6
data("full_processed_profile", package="phyloprofile")
data <- full_processed_profile
profile_type <- "binary"
var1_aggregate_by <- "max"
var2_aggregate_by <- "mean"
get_data_clustering(data, profile_type, var1_aggregate_by, var2_aggregate_by)

trvinh/test documentation built on May 9, 2019, 2:26 a.m.