Alters a SWAP vector with the given value at the given index. Can optionally pass a list of vectors as returning by load_swap_vectors(), and the variable name, and rswap will find the right vector for you

change_swap_vector(vector, index, value, variable = NULL, verbose = F)

Arguments

vector

dataframe of vector to alter. (Optionally, one can pass a list of vectors as returned by load_swap_vectors() and then also pass the variable name)

index

index of the vector to alter (integer)

value

value to set the vector at the given index (SWAP-FORTRAN compatible)

variable

optional, only required if passing a list of multiple vectors. (string)

verbose

print status? (flag)

Value

the same vector or vector list as passed, but with the modified value