kinsman nearer than I
It was the duty of the closest male relative to help the widow.
do the duty of a kinsman
The duty of a kinsman is to marry the widow and father children for their dead relative.
by the life of Yahweh
"as surely as Yahweh lives." This was a common form of a Hebrew vow.