Code finished... now debugging

I got this error ‘$ operator is invalid for atomic vectors’ and I am
trying to solve it.