Learn R Programming

soc.ca (version 0.8.0)

create.quadrant: Create categories according to the quadrant position of each individual

Description

Creates a vector from two dimensions from a soc.ca object. Labels are the cardinal directions with the first designated dimension running East - West. The center category is a circle defined by cut.radius.

Usage

create.quadrant(
  object,
  dim = c(1, 2),
  cut.min = -0.125,
  cut.max = 0.125,
  cut.radius = 0.25
)

Arguments

object

a soc.ca class object

dim

the dimensions

cut.min

Minimum cut value

cut.max

Maximum cut value

cut.radius

Radius of the center category

Value

Returns a character vector with category memberships

See Also

soc.mca

Examples

Run this code
# NOT RUN {
example(soc.ca)
create.quadrant(result, dim = c(2, 1))
table(create.quadrant(result, dim = c(1, 3), cut.radius = 0.5))

# }

Run the code above in your browser using DataLab