Learn R Programming

x.ent (version 1.1.7)

xdata:

Description

This is a function using transformation of results to data frame.

Usage

xdata(e = NULL)
  xdata_value(v, sort = "a")

Arguments

e
a vector of a entity or a list of entities, if it is nul, it shows all entities and relations that it is configured in the configuration file
v
a entity
sort
with the function xdata_value, variable "sort" allows you to sort values following frequency or alphabetically

Value

data frame
return a data frame

Details

The data frame contains the columns of the name of entity or relationship and the rows of values of named entity.

See Also

xparse call the main function of module extraction written by Perl

Examples

Run this code
  xdata() #show all entities
  xdata(c("p","b")) #show two entities: "p", "b"
  xdata_value("p") #show only values of entity "p"
  #there are two columns "value" et "freq" in this data frame
  xdata_value("p")[["value"]] #convert to a verctor

Run the code above in your browser using DataLab