Learn R Programming

DrugClust (version 0.2)

InitSideEffect: InitSideEffect

Description

Initialize the matrix of features and Side Effects

Usage

InitSideEffects(nameSideEffects)

Arguments

nameSideEffects
name of the file where the side effects are stored. The format has to be a binary matrix, where the rows are the drugs and columns are the various side effects (1/0 meaning presence or absence of a certain side effect).

Value

The matrix containing drugs side effects

Examples

Run this code
#Generate a sample features binary matrix
#for example you will fin the file pharmat.txt which is a sample file of side_effects matrix
#you can therefore type the command side_effects<-InitSideEffects("pharmat.txt") to upload it

Run the code above in your browser using DataLab