amanida_read {amanida}R Documentation

Import data

Description

amanida_read imports the data and formats for compute_amanida or amanida_vote functions

Usage

amanida_read(file, mode, coln, separator = NULL)

Arguments

file

path to file

mode

indicate if data will be quantitative or qualitative. Options are:

  • "quan" for quantitative meta-analysis using p-value and fold-change

  • "qual" for qualitative meta-analysis using trend label

coln

columns names to use

separator

the separator used on file

Details

Note that amanida_read skips rows with missing values or NA.

Formats compatible are csv, xlsx, xls or txt.

Value

tibble table with data imported

Examples

coln = c("Compound Name", "P-value", "Fold-change", "N total", "References")
input_file <- system.file("extdata", "dataset2.csv", package = "amanida")
datafile <- amanida_read(input_file, mode = "quan", coln, separator=";")


[Package amanida version 0.0.8 Index]