Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

simFrame (version 0.5.0)

length-methods: Methods for getting the length of an object

Description

Get the length of an object.

Usage

## S3 method for class 'SampleSetup':
length(x)

## S3 method for class 'VirtualContControl': length(x)

## S3 method for class 'VirtualNAControl': length(x)

## S3 method for class 'VirtualSampleControl': length(x)

Arguments

x
an object.

Value

  • An integer giving the length of the object. See the Methods section below for details.

See Also

length

Examples

Run this code
## load data
data(eusilcP)

## class "SampleSetup"
# set up samples using group sampling
set <- setup(eusilcP, grouping = "hid", size = 1000, k = 50)
summary(set)
length(set)

## class "ContControl"
cc <- ContControl(target = "eqIncome", 
    epsilon = c(0, 0.0025, 0.005, 0.0075, 0.01), 
    dots = list(mean = 5e+05, sd = 10000))
length(cc)

## class "NAControl"
nc <- NAControl(target = "eqIncome", NArate = c(0.1, 0.2, 0.3))
length(nc)

Run the code above in your browser using DataLab