dexterr
dexterr

Reputation: 1

How to use %like% operator inside a parallel foreach

I am using foreach using dopar to parallelize a task. Inside the statement I am using the %like%, but I hit an error

Error in { : task 1 failed - "could not find function "%like%"

I thought like was just a wrapper for grep and is part of the base package. Can anyone help me out?

Upvotes: 0

Views: 146

Answers (1)

heraldo
heraldo

Reputation: 1

Try to insert the lines below in your code. I believe you forgot to reference the package.

install.packages ('data.table')
library (data.table)

Upvotes: 0

Related Questions