Selects the first n rows of the dataset

Description

R implementation of the SPSS N OF CASES argument.

Usage

1

Arguments

x

input data.

n

atomic numeric with the value of n.

Details

xpssNofCases can be used to select via command the first N cases in the data file. xpssNofCases permanently modifies the data set. NOTE: For temporary case selection, specify xpssTemporary before xpssNofCases.

Value

Output is the narrowed dataset.

Author(s)

Bastian Wiessner

See Also

Related Functions drop subset

Examples

1
2

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.