

   attach {base}                                R Documentation

   AAttttaacchh SSeett ooff RR OObbjjeeccttss ttoo SSeeaarrcchh PPaatthh

   DDeessccrriippttiioonn::

        A new database is attached. This means that its objects
        are made available to R.

        -- should say more here --

   UUssaaggee::

        attach(what, pos = 2, name = deparse(substitute(what)))

   AArrgguummeennttss::

       what: ``database'' to attach. Typically a `data.frame'.

        pos: integer specifying position in `search()' where to
             attach.

       name: alternative way to specify the database to be
             attached.

   VVaalluuee::

        The `environment' is returned invisibly with a `"name"'
        attribute.

   SSeeee AAllssoo::

        `library', `detach', `search', `objects', `environ-
        ment'.

   EExxaammpplleess::

        data(women)
        attach(women)
        summary(height)   #- which belongs to `women'

