Yang-Baxter Invariant for knots in the Projective Space