Skip to content
Prev 181819 / 398506 Next

Nested variables

Hello
Im am working with a biological data including variables called Habitat and
Site, example:

Habitat     Site

Forest      Low
Forest      Low
Forest      High
Forest      High

I want to tell R that the Site variable is nested within the Forest variable
(that it is not a new variable).
Does anyone know how to do this?

Thanks alot

Daniel W. Carstensen
Denmark