get_set-methods function

Extract and modify variables from population or sample data stored in an object of class simPopObj-class.