Learn R Programming

mbgraphic (version 1.0.1)

mergesdfdata: Merging two lists of class "sdfdata"

Description

The function merges two lists of class "sdfdata" generated by function sdf or scag2sdf.

Usage

mergesdfdata(sdfdata1, sdfdata2)

Arguments

sdfdata1

A list of class "sdfdata".

sdfdata2

A list of class "sdfdata".

Value

A list of class "sdfdata".

See Also

sdf, scag2sdf

Examples

Run this code
# NOT RUN {
data(Election2005)
set.seed(345456)
election05_small <- Election2005[,sample(5:70,5)]
scagdf <- sdf(election05_small)
addscag <- scag2sdf(election05_small,
    scagfun.list=list(dcor2d=dcor2d,splines2d=splines2d))
# merge addscag and scagsdf
scagdf2 <- mergesdfdata(scagdf,addscag)
# }

Run the code above in your browser using DataLab