Description Usage Arguments Details Value References Examples
This function removes all the leading and the trailing whitespaces in data
1 |
traj |
[matrix (numeric)]: longitudinal data. Each row represents an individual trajectory (of observations). The columns show the observations at consecutive time points. |
remove |
[character]: Type of whitespace to remove. That is, "Left" (leading), (2) "Right" (trailing), or "Both" (both leading and trailing whitespaces). Default: "Both". |
verbose |
to suppress output messages (to the console).
Default: |
Given a matrix suspected to contain whitespaces, this function removes the type of the whitespaces specified and returns a cleaned data. ’Whitespaces’ are white characters often introduced into data during data entry, for instance by wrongly pressing the spacebar. For example, neither " A" nor "A " is the same as "A" because of the whitespaces that exist in them. They can also result from systematic errors in data recording devices.
A matrix with all whitespaces (if any) removed.
https://en.wikipedia.org/wiki/Whitespace_character
1 2 3 | data(traj_w_spaces)
w_spaces(traj_w_spaces, remove="Both", verbose=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.