~showard314/ubuntu/karmic/r-base/remove_start_comments

« back to all changes in this revision

Viewing changes to src/library/base/man/data.frame.Rd

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2008-12-20 09:26:38 UTC
  • mfrom: (1.2.6 upstream)
  • mto: (2.1.32 jaunty)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20081220092638-i4p6po0hndi24ri5
* Updated to Dec 19 release candidate of R 2.8.1 expected for Dec 22

* r-doc-pdf expected to be empty due to the tex/texinfo bug below

* debian/control: Change Build-Depends: on openjdk-6-jdk to 
  'openjdk-6-jdk [!arm !hppa]' as arm and hppa do not have one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
\value{
43
43
  A data frame, a matrix-like structure whose columns may be of
44
44
  differing types (numeric, logical, factor and character and so on).
 
45
  
 
46
  How the names of the data frame are created is complex, and the rest
 
47
  of this paragraph is only the basic story.  If the arguments are all
 
48
  named and simple objects (not lists, matrices of data frames) then the
 
49
  argument names give the column names.  For an unnamed simple argument,
 
50
  a deparsed version of the argument is used as the name (with an
 
51
  enclosing \code{I(...)} removed).  For a named matrix/list/data frame
 
52
  argument with ore than one named column, the names of the columns are
 
53
  the name of the argument followed by a dot and the column name inside
 
54
  the argument: if the argument is unnamed, the argument's column names
 
55
  are used.  For a named or unnamed matrix/list/data frame argument that
 
56
  contains a single column, the column name in the result is the column
 
57
  name in the argument.  Finally, the names are adjusted to be unique
 
58
  and syntactically valid unless \code{check.names = FALSE}.
45
59
}
 
60
 
46
61
\details{
47
62
  A data frame is a list of variables of the same length with unique row
48
63
  names, given class \code{"data.frame"}.  If there are zero variables,
49
64
  the row names determine the number of rows.
50
65
 
51
 
 
52
66
  Duplicate column names are allowed, but you need to use
53
67
  \code{check.names=FALSE} for \code{data.frame} to generate such a data
54
68
  frame.  However, not all operations on data frames will preserve