If only one column is supplied,
the result is the column
If more than one name is supplied,
the result is a list of columns.
Arguments
object
the object to access.
col.name
the name of columns to access.
Details
The function finds the given column by comparing col.name
to the names slot of object, and then extracts the corresponding
vectors from the list in the columns slot of object.
You can use this function on the left side of an assignment to replace the given
columns with new values.
If you replace one column, supply the value as a vector.
If you replace multiple columns, supply the values in a list.
The new data is coerced to the columns class using
as before the replacement, and the column lengths are checked.