Added method g2adj for data.frame