Find Degrees Of Freedom In R