R/attach_environment.R

Defines functions attach_environment

## File Name: attach_environment.R
## File Version: 0.04


#######################################
# attach all elements in an environment
attach_environment <- function( res, envir )
{
    CC <- length(res)
    for (cc in 1:CC){
        assign( names(res)[cc], res[[cc]], envir=envir )
    }
}

.attach.environment <- attach_environment

Try the CDM package in your browser

Any scripts or data that you put into this service are public.

CDM documentation built on Aug. 25, 2022, 5:08 p.m.