Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rmv.blanks

Remove blanks spaces from non-numeric variables imported from SPSS dataframes


Description

When large SPSS datasets are imported into R, non-numeric fields frequently have numerous blank spaces prior to the text. The blank spaces make it difficult to summarize non-numeric text. The function is applied to an entire dataframe and removes the blank spaces.

Usage

rmv.blanks(object)

Arguments

object

Typically a dataframe created from an imported SPSS file.

Value

Returns a new dataframe without preceeding

Author(s)

See Also

Examples

## Not run: library(foreign)
   mydata<-read.spss(file.choose(),to.data.frame=T,use.value.labels=F)
   mydata<-rmv.blanks(mydata)
## End(Not run)

multilevel

Multilevel Functions

v2.6
GPL (>= 2)
Authors
Paul Bliese
Initial release
2016-07-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.