Description Usage Arguments Details
Definition: Sometimes when files from SPSS are imported as dataframes to R, or when one works with windows text files in linux some trailing whitespaces creeps in. This function returns the same variable_name but without the extra whitespaces. It only works for final whitespaces.
1 |
x |
= variable |
Example: df$variable <- trim.trailing (otherdf$variable)
Source: http://stackoverflow.com/a/2261149/4417072
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.