Magnetic characteristics of RNi4B compounds (R=Y, Pr, Sm, Tb, Ho and Er)