The R Project SVN R

Rev

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

Rev 61433 Rev 61769
Line 1... Line 1...
1
% File src/library/base/man/length.Rd
1
% File src/library/base/man/length.Rd
2
% Part of the R package, http://www.R-project.org
2
% Part of the R package, http://www.R-project.org
3
% Copyright 1995-2012 R Core Team
3
% Copyright 1995-2012 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
-
 
6
\newcommand{\CRANpkg}{\href{http://CRAN.R-project.org/package=#1}{\pkg{#1}}}
-
 
7
 
6
\name{length}
8
\name{length}
7
\alias{length}
9
\alias{length}
8
\alias{length<-}
10
\alias{length<-}
9
\alias{length<-.factor}
11
\alias{length<-.factor}
10
\title{Length of an Object}
12
\title{Length of an Object}
Line 49... Line 51...
49
  names, which are adjusted (and if necessary extended by \code{""}).
51
  names, which are adjusted (and if necessary extended by \code{""}).
50
}
52
}
51
 
53
 
52
\section{Warning}{
54
\section{Warning}{
53
  Package authors have written methods that return a result of length
55
  Package authors have written methods that return a result of length
54
  other than one (\pkg{Formula}) and that return a vector of type
56
  other than one (\CRANpkg{Formula}) and that return a vector of type
55
  \code{\link{double}} (\pkg{Matrix}), even with non-integer values
57
  \code{\link{double}} (\CRANpkg{Matrix}), even with non-integer values
56
  (earlier versions of \pkg{sets}).  As from \R 2.15.2, where a single
58
  (earlier versions of \CRANpkg{sets}).  As from \R 2.15.2, where a
57
  double value is returned that can be represented as an integer it is
59
  single double value is returned that can be represented as an integer
58
  returned as a length-one integer vector.
60
  it is returned as a length-one integer vector.
59
 
61
 
60
  As from \R 3.0.0, lengths can be returned as double in base \R.
62
  As from \R 3.0.0, lengths can be returned as double in base \R.
61
}
63
}
62
 
64
 
63
\seealso{\code{nchar} for counting the number of characters in
65
\seealso{\code{nchar} for counting the number of characters in