EveString: Converts sequences of event names to strings - generalized
Description
EveString converts event names in a data frame to a string vector.
In the data frame, each row, which can have different number of
event names, is converted to a string based on the conversion key. As
a result, in the vector, converted strings may have different lengths.
Usage
EveString(eveName.file, eveName.vec, char.vec)
Arguments
eveName.file
File that stores event names to be converted.
eveName.vec
Vector of event names in a conversion key.
char.vec
Characters vector in a conversion key.
Value
The function returns a vector containing converted strings that generally have different lengths.
If not all event names are converted to characters, a warning message will be printed out.
Details
In general, it is not convenient to deal with data frames where different rows have different
numbers of elements. Thus, it is easier to use a text file than to use a data frame when storing
different numbers of event names in rows. As a result, this function utilizes a .txt or .csv file
(for eveName.file) and handles such task to save users' effort.