[ top | up ]

Attach set of R objects to search path

Syntax

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

Arguments

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.

Description

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

------ should say more here ------

Value

The environment is returned invisibly with an "name" attribute.

See Also

library, detach, search, objects, environment.

Examples

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