Learn R Programming

dst (version 1.8.0)

intersBySSName: Intersect two vectors of ssnames

Description

Intersect two vectors of ssnames

Usage

intersBySSName(zx, yz)

Value

ssnames in the intersection of the two bcas

Arguments

zx

a vector of ssnames from one bca

yz

a vector of ssnames from another bca

Author

Peiyuan Zhu

Examples

Run this code
y1 <- bca(tt = matrix(c(0,1,1,1,1,0,1,1,1),nrow = 3, 
byrow = TRUE), m = c(0.2,0.5, 0.3), 
cnames = c("a", "b", "c"),  
varnames = "x", idvar = 1) 
y2 <- bca(tt = matrix(c(1,0,0,1,1,1),nrow = 2, 
byrow = TRUE), m = c(0.6, 0.4),  
cnames = c("a", "b", "c"),  
varnames = "x", idvar = 1)
intersBySSName(y1$ssnames[[1]], y2$ssnames[[2]])

Run the code above in your browser using DataLab