Learn R Programming

rv (version 0.949)

splitAndImpute: Split a vector based on the names of the components

Description

splitAndImpute splits the given vector based on the names of the components, and imputes the variables into given templates.

Usage

splitAndImpute(x, templates)

Arguments

x
a vector with the name attributes set
templates
a named list of templates (arrays)

Details

A convenience function: combination of splitbyname and imputeIntoTemplate.

See splitbyname and imputeIntoTemplate for details.

Examples

Run this code
#

Run the code above in your browser using DataLab