Learn R Programming

contextual (version 0.9.8.4)

ones_in_zeroes: A vector of zeroes and ones

Description

A vector of zeroes and ones

Usage

ones_in_zeroes(vector_length, index_of_one)

Arguments

vector_length

How long will the vector be?

index_of_one

Where to insert the one?

Value

Vector of zeroes with one(s) at given index position(s)