The R Project SVN R

Rev

Rev 25118 | Rev 38130 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25118 Rev 25554
Line 1... Line 1...
1
\name{mode}
1
\name{mode}
2
\title{The (Storage) Mode of an Object}
-
 
3
\usage{
-
 
4
mode(x)
-
 
5
mode(x) <- "<mode>"
-
 
6
storage.mode(x)
-
 
7
storage.mode(x) <- "<mode>"
-
 
8
}
-
 
9
\alias{mode}
2
\alias{mode}
10
\alias{mode<-}
3
\alias{mode<-}
11
\alias{storage.mode}
4
\alias{storage.mode}
12
\alias{storage.mode<-}
5
\alias{storage.mode<-}
-
 
6
\title{The (Storage) Mode of an Object}
13
\description{
7
\description{
14
  Get or set the type or storage mode of an object.
8
  Get or set the type or storage mode of an object.
15
}
9
}
-
 
10
\usage{
-
 
11
mode(x)
-
 
12
mode(x) <- value
-
 
13
storage.mode(x)
-
 
14
storage.mode(x) <- value
-
 
15
}
16
\arguments{
16
\arguments{
17
  \item{x}{any \R object.}
17
  \item{x}{any \R object.}
-
 
18
  \item{value}{a character string giving the desired (storage) mode of
-
 
19
    the object.}
18
}
20
}
19
\details{
21
\details{
20
  Both \code{mode} and \code{storage.mode} return a character string
22
  Both \code{mode} and \code{storage.mode} return a character string
21
  giving the (storage) mode of the object --- often the same --- both
23
  giving the (storage) mode of the object --- often the same --- both
22
  relying on the output of \code{\link{typeof}(x)}, see the example
24
  relying on the output of \code{\link{typeof}(x)}, see the example