parse.smtrx | R Documentation |
Converts string representation of timestamp value into date time object. Most
exported sociometric measurements are timestamped. During the export (from Datalab) and import
process (into R), the timestamp is stored as a string representation which needs to be converted
into a date time object. The col
parameter indicates the position of the column which
holds the timestamp values, mostly the first column. This method is called by most parse
functions to make sure the uniform naming and formatting of the timestamp column across all
different sociometric data types. If the raw_df
timestamp data is already a POSIXct object
the data frame is returned directly.
## S3 method for class 'smtrx'
parse(raw_df, format = NULL, as_posixct = T, ts_col = 1, tz = NULL)
raw_df |
Data frame as result of |
format |
Formatting string for timestamp.
|
as_posixct |
Logical. If resulting timestamp should be converted to POSIXct object. |
ts_col |
Index or name of colum that holds timestamp data. |
tz |
String. Specify timezone. Default |
Original data frame with timestamp column converted to datetime object. Data frame has class "smtrx".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.