weightfield(x)
weightfield(x, varname) <- value
weightfield(x, varname) <- value
"weightfield"(x)
"weightfield"(x) <- value
"weightfield"(x, varname) <- value
varname
is
passed to the replacement function. If the dataframe contains multiple
columns, the column with the same name as varname
is used,
otherwise the first column is used.