File: dataFrame.Rd

package info (click to toggle)
r-cran-r.utils 2.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,864 kB
  • sloc: sh: 18; makefile: 6
file content (50 lines) | stat: -rw-r--r-- 1,187 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
% 
%  dataFrame.R
% 
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\name{dataFrame}
\alias{dataFrame.default}
\alias{dataFrame}

\title{Allocates a data frame with given column classes}

\usage{
\method{dataFrame}{default}(colClasses, nrow=1, ...)
}

\description{
 Allocates a data frame with given column classes.
}

\arguments{
 \item{colClasses}{A \code{\link[base]{character}} \code{\link[base]{vector}} of column classes,
   cf. \code{\link[utils]{read.table}}.}
 \item{nrow}{An \code{\link[base]{integer}} specifying the number of rows of the
   allocated data frame.}
 \item{...}{Not used.}
}

\value{
 Returns an NxK \code{\link[base]{data.frame}} where N equals \code{nrow} and
 K equals \code{length(colClasses)}.
}

\examples{
  df <- dataFrame(colClasses=c(a="integer", b="double"), nrow=10)
  df[,1] <- sample(1:nrow(df))
  df[,2] <- rnorm(nrow(df))
  print(df)
}

\seealso{
  \code{\link[base]{data.frame}}.
}



\keyword{manip}
\keyword{utilities}