MINI MINI MANI MO

Path : /opt/oracle/product/18c/dbhomeXE/R/library/OREeda/doc/man/ko/
File Upload :
Current File : //opt/oracle/product/18c/dbhomeXE/R/library/OREeda/doc/man/ko/ore.crosstab.Rd

%
% Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. 
%
\name{ore.crosstab}
\alias{ore.crosstab}
\title{
Oracle R Enterprise 교차 도표화
}
\description{
선택적 집계, 가중치, 순서 지정 옵션으로 여러 열을
  지원하여 \code{\link[stats]{xtabs}} 함수를 확장합니다.
  교차 도표화 작성은 \code{\link{ore.freq}} 함수를 사용하기 위한
  필요 조건입니다.
}
\usage{
  ore.crosstab(expr, data, ..., group.by = NULL, order = NULL,
               weights = NULL, where = NULL, strata = NULL) 
}
\arguments{
  \item{expr}{
교차 도표화를 정의하는 공식 객체입니다.
    구문: \code{[CS] ~ CS [*<WC>][/<GC>][^[SC][|OC]}
    여기서 \code{CS}은(는) \code{[+CSET][+CRANGE]}이고
    \code{CSET}은(는) \code{[+CSET]}이고
    \code{CRANGE}은(는) \code{<FROM COLUMN>-<TO COLUMN>}입니다.
}
  \item{data}{
\code{\link[OREbase:ore.frame-class]{ore.frame}} 객체입니다.
}
  \item{\dots}{
추가 인수입니다.
}
  \item{group.by}{
\code{data} 인수 안에 group by 열 이름을 지정하는
    선택적 문자 벡터입니다.
}
  \item{order}{
교차 도표화의 순서를 지정하는 선택적 문자열입니다.
    \code{"NAME"}(이름별 오름차순), \code{"-NAME"}(이름별 내림차순),
    \code{"DATA"}(데이터별 오름차순), \code{"-DATA"}(데이터별 내림차순),
    \code{"FREQ"}(빈도별 오름차순), \code{"-FREQ"}(빈도별 내림차순),
    \code{"INTERNAL"} 중 하나입니다.
}
  \item{weights}{
\code{data} 인수 안에 분석 가중치로 사용할 숫자 열을 지정하는
    선택적 문자열입니다.
}
  \item{where}{
\code{data} 인수의 임의 분할 영역을 지정하는
    선택적 문자 벡터입니다.
}
  \item{strata}{
\code{data} 인수 안에 층화 변수로 사용할 숫자 열을 지정하는
    선택적 문자열입니다.
}
}

\value{
\code{where} 인수가 지정되지 않은 경우 \code{\link[OREbase:ore.frame-class]{ore.frame}} 객체를 반환합니다.
  \code{where} 인수가 지정된 경우 \code{\link[OREbase:ore.frame-class]{ore.frame}} 객체의 목록을 반환합니다.
}
\references{
  \href{http://www.oracle.com/technetwork/database/database-technologies/r/r-enterprise/documentation/index.html}{Oracle R Enterprise}
}
\author{
  Oracle \email{oracle-r-enterprise@oracle.com}
}
\seealso{
 \code{\link{ore.freq}},
 \code{\link[stats]{xtabs}}
}
\examples{
  IRIS <- ore.push(iris)

  table(iris$Species, iris$Petal.Length)
  ore.crosstab(Species ~ Petal.Length, data = IRIS)

  # 1 way table
  ore.crosstab(~Species, data = IRIS)

  # 2 2-way tables
  ore.crosstab(Species ~ Petal.Length + Sepal.Length, data = IRIS)

  # Order rows of cross-tabulation by asc frequency counts 
  ore.crosstab(Species ~ Petal.Length | FREQ, data = IRIS)

  # Order by descending frequency counts
  ore.crosstab(Species ~ Petal.Length | -FREQ, data = IRIS)

  # As many cross-tabs as distinct values in Species
  ore.crosstab(Petal.Length ~ Sepal.Length / Species, data = IRIS)

  # Syntactic simplication
  ore.crosstab(Sepal.Length - Petal.Width ~ Species, data = IRIS)

  # Illustration of the use of group.by 
  ore.crosstab(Species ~ Petal.Length, data = IRIS)

  # Compare with the following where Petal.Length values are hidden
  ore.crosstab(~ Species, group.by = "Petal.Length", data = IRIS)

  # Use of derived columns
  IRIS$PetalBins <- ifelse(IRIS$Petal.Length < 2, "SMALL",
                    ifelse(IRIS$Petal.Length < 5, "MEDIUM", "LARGE"))
  ore.crosstab(Species ~ PetalBins, data = IRIS)
}
\keyword{category}

OHA YOOOO