xpssEndIf: Ends a DO IF - END IF subset

Description Usage Arguments Details Value Author(s) Examples

Description

R implementation of the SPSS END IF argument.

Usage

1

Arguments

x

a (non-empty) data.frame or input data of class "xpssFrame".

Details

xpssEndIf determines the end of the analysis based on logical conditions via xpssDoIf. xpssEndIf merge the excluded data with the actual dataset, after xpssDoIf subsetted the data. All changes which were made until xpssEndIf will be taken over, the excluded data will remain untouched!

NOTE: For temporary case selection, specify xpssTemporary before xpssDoIf.

Value

Output is the original dataset.

Author(s)

Andreas Wygrabek

Examples

1
2
3
4
5
6
7
data(fromXPSS)

temp <- xpssDoIf(x=fromXPSS, cond = "V3 == 1")

temp <- xpssRecode(x=temp,variables="V5",rec="lo:78 = 1; else = 2")

temp <- xpssEndIf(x=temp)


Search within the translateSPSS2R 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.