Learn R Programming

psygenet2r (version 1.2.0)

extract: Raw data from DataGeNET.Psy and JaccardIndexPsy.

Description

Obtain the raw data from a PsyGeNET's query stored in a DataGeNET.Psy object or the raw data with all the Jaccard Index for the disease of interest of an JaccardIndexPsy object.

Usage

extract(object)
"extract"(object)
"extract"(object)

Arguments

object
Object of class DataGeNET.Psy or JaccardIndexPsy

Value

A data.frame containing the raw result from PsyGeNET or a data.frame with the result Jaccard Index for each disease.A data.frame containing the raw result from PsyGeNETA data.frame with the result Jaccard Index for each disease.

Methods (by class)

  • DataGeNET.Psy: Extract function for DataGeNET.Psy
  • JaccardIndexPsy: Extract function for JacardIndexPsy

Examples

Run this code
data(qr)
extract(qr)[1:2, ] # get internat data.frame
## Not run: 
# #Being x an JaccardIndexPsy
# extract(x)
# ## End(Not run)

Run the code above in your browser using DataLab