updated logicals.r
updated factors.r