PrepareData: PrepareData

Description Usage Arguments Value Author(s) Examples

View source: R/CreateBasicData.R

Description

Prepare input format.

Usage

1
PrepareData(data, col1, col2, format = "single", sep)

Arguments

data

A data frame containing interaction information.

col1

A charactor containing "drug", "herb", "compound", or "target".

col2

A character containing "drug", "herb", "compound", or "target".

format

one of "single" or "basket".

sep

Separator.

Value

a list

Author(s)

Yuanlong Hu

Examples

1
2
3
4
5
  data("drugSample")
  drug_herb <- PrepareData(drugSample$drug_herb, col1 = "drug", col2 = "herb")
  herb_target <- PrepareData(drugSample$herb_target,
                             col1 = "herb", col2 = "target",
                             format = "basket", sep = ", ")

immcp documentation built on Nov. 14, 2020, 5:09 p.m.