Eventually the above worked only after I removed the initial pipe in of the data frame I was trying to work on. Just trying to understand why the above pipe in did not work?
Because the pipe operator passes the previous object as the first argument for the next function so you were passing postings twice, equivalent to this