xdata: Transform the results to data frame

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/xdata.R

Description

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

Usage

1
2
  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

Details

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

Value

data frame

return a data frame

Author(s)

Tien T. Phan

See Also

xparse call the main function of module extraction written by Perl

Examples

1
2
3
4
5
  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

Example output

Parameters are incorrect or there are problems in paths, please check your parameters!
Parameters are incorrect or there are problems in paths, please check your parameters!
Parameters are incorrect or there are problems in paths, please check your parameters!
Parameters are incorrect or there are problems in paths, please check your parameters!
NULL

x.ent documentation built on May 2, 2019, 2:14 p.m.

Related to xdata in x.ent...