Learn R Programming

bdpar (version 1.0.1)

ExtractorSms: Class to handle SMS files with tsms extension

Description

This class that inherits from the Instance class and implements the functions of extracting the text and the date of an tsms type file.

Usage

ExtractorSms

Arguments

Constructor

ExtractorSms$new(path)

  • Arguments:

    • path: (character) path of the tsms type file.

Inherit

This class inherits from Instance and implements the obtainSource and obtainDate abstracts functions.

Methods

  • obtainDate: function that obtains the date of the SMS file.

    • Usage: obtainDate()

  • obtainSource: obtains the source of the SMS file. Reads the file indicated in the path. In addition, it initializes the data with the initial source.

    • Usage: obtainSource()

Details

Due to the fact that the creation date of the message can not be extracted from the text of an SMS, the date will be initialized to empty.

See Also

ExtractorEml, ExtractorTwtid, ExtractorYtbid, Instance