seldifdat: Select data with index in dat1, but not in dat2. Assuming...

View source: R/jasaDataAnalysis.R

seldifdatR Documentation

Select data with index in dat1, but not in dat2. Assuming dat2 is part of dat1.

Description

Select data with index in dat1, but not in dat2. Assuming dat2 is part of dat1.

Usage

seldifdat(dat1, dat2, vind1, vind2)

Arguments

dat1

The first data set to select data from

dat2

The second data set to exclude data from data1 whose indices are in dat2.

vind1

The index variable in dat1 used to determine the selection

vind2

The index variable in dat2 used to exclude the data from dat1 whose indices match. As such, vind1 in dat1 and vind2 in dat2 should be the same variable.

Details

Separate dat1 into two data sets with one having indices of vind1 in dat1, but not in dat2, and the other having indices match those of vind2 in dat2 ()

Value

Two data sets Note that we can use merge function to select data with common index data.

Examples

## Not run: seldifdat(dat1, dat2, vind1=1,vind2=1)


hychen-uic/TEV documentation built on Jan. 24, 2025, 9:14 p.m.