How can I do a for loop that does to a data.frame column what: for x in xs: does in Python? Obviously the data.frame column in question holds "levels". What if the data.frame is in matrix form? BR, Matti