Learn R Programming

timeSeries (version 280.75)

attach: Attach a timSeries to the search path

Description

Attach a 'timeSeries' object to the search path. ll{ attach attaches a 'timeSeries' object, detach detaches a 'timeSeries' object [see base package]. }

Usage

## S3 method for class 'timeSeries':
attach(what, pos = 2, name = deparse(substitute(what)), 
    warn.conflicts = TRUE)

Arguments

name
[attach] - alternative way to specify the database to be attached. See for details help(attach,package=base).
pos
[attach] - an integer specifying position in search() where to attach the database. See for details help(attach,package=base).
warn.conflicts
[attach] - a logical value. If TRUE, warnings are printed about conflicts from attaching the database, unless that database contains an object .conflicts.OK. A conflict is a function masking a function
what
[attach] - database to be attached. This may currently be a timeSeries object, a data.frame or a list or a R data file created with save or NULL or an environment. See for details help(attach,package=base).

Examples

Run this code
## data -
   x = as.timeSeries(data(msft.dat))[1:10, ]
   
## attach -
   attach(x)
   High - Low

Run the code above in your browser using DataLab