Learn R Programming

misha (version 4.2.9)

gtrack.attr.export: Returns track attributes values

Description

Returns track attributes values.

Usage

gtrack.attr.export(tracks = NULL, attrs = NULL)

Value

A data frame containing track attributes values.

Arguments

tracks

a vector of track names or 'NULL'

attrs

a vector of attribute names or 'NULL'

Details

This function returns a data frame that contains track attributes values. Column names of the data frame consist of the attribute names, row names contain the track names.

The list of required tracks is specified by 'tracks' argument. If 'tracks' is 'NULL' the attribute values of all existing tracks are returned.

Likewise the list of required attributes is controlled by 'attrs' argument. If 'attrs' is 'NULL' all attribute values of the specified tracks are returned. The columns are also sorted then by "popularity" of an attribute, i.e. the number of tracks containing this attribute. This sorting is not applied if 'attrs' is not 'NULL'.

Empty character string in a table cell marks a non-existing attribute.

See Also

gtrack.attr.import, gtrack.attr.get, gtrack.attr.set

Examples

Run this code
# \dontshow{
options(gmax.processes = 2)
# }

gdb.init_examples()
gtrack.attr.export()
gtrack.attr.export(tracks = c("sparse_track", "dense_track"))
gtrack.attr.export(attrs = "created.by")

Run the code above in your browser using DataLab