rmv.blanks: Remove blanks spaces from non-numeric variables imported from...

Description Usage Arguments Value Author(s) See Also Examples

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

1
rmv.blanks(object)

Arguments

object

Typically a dataframe created from an imported SPSS file.

Value

Returns a new dataframe without preceeding

Author(s)

Paul Bliese paul.bliese@moore.sc.edu

See Also

read.spss

Examples

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


Search within the multilevel package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.