Learn R Programming

rtext (version 0.1.22)

vector_delete: function used to delete parts from a vector

Description

function used to delete parts from a vector

Usage

vector_delete(x, n = NULL, from = NULL, to = NULL)

Arguments

x

input vector

n

number of items to be deleted

from

from which position onwards elements should be deleted

to

up to which positions elements should be deleted