Description Usage Arguments Value Examples
Based on matches between two files (see findMatch
) the functions create submatches over n
files.
For a detailed application see the vignette.
1 |
data |
list of data frames |
matches |
a double list of matches with elements |
possible |
logical: in case of unclear matches should all possible matches be created (default: |
matches
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # generate panel data with three time points:
# 6 obs only in t1,
# 5 in t1 and t2,
# 8 in t1 and t3,
# 7 in t1, t2 and t3
# 4 only in t2
# 3 in t2 and t3
# 2 only in t3
n <- list(c(6, 1), c(5, 1, 2), c(8, 1, 3), c(7, 1, 2, 3), c(4, 2), c(3, 2, 3), c(2, 3))
x <- generateTestData(n)
# find double matches
m12 <- findMatch(x[1:2], 'code')
summary(m12)
m23 <- findMatch(x[2:3], 'code')
summary(m23)
m13 <- findMatch(x[c(1,3)], 'code')
summary(m13)
matches <- list()
matches[['t1']][['t2']] <- m12
matches[['t1']][['t3']] <- m13
matches[['t2']][['t3']] <- m23
m123 <- findPanel(x, matches)
summary(m123)
head(m123)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.