Learn R Programming

emuR (version 0.1.9)

create_emuRtrackdata: create emuRtrackdata object

Description

Joins emuRsegs and trackdata objects to create an emuRtrackdata object that is a sub-class of a data.table (and data.frame) object. This object can be viewed as a flat version of a trackdata object that also contains all the information of a emuRsegs object. It is meant to ease integration with other packages as it is based on the well known data.table and data.frame objects.

Usage

create_emuRtrackdata(sl, td)

Arguments

sl
seglist of class emuRsegs
td
trackdata object generated from sl

Value

emuRtrackdata object

Examples

Run this code
## Not run: 
# 
# ##################################
# # prerequisite: loaded ae emuDB 
# # (see ?load_emuDB for more information)
# 
# # query emuDB (to get object of class emuRsegs)
# sl = query(emuDBhandle = ae, 
#            query = "Phonetic == i:")
#            
# # get formats for SEGMENTs in sl (to get object of class trackdata)
# td = get_trackdata(emuDBhandle = ae, 
#                    seglist = sl,
#                    onTheFlyFunctionName = "forest")
# 
# # create emuRtrackdata object
# create_emuRtrackdata(sl = sl, td = td)
# 
# ## End(Not run)

Run the code above in your browser using DataLab