cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to subset the data using SparkR, using piping convention to execute the commands

RiyazAli
Valued Contributor

I'm operating on some data that looks like the image attached.

0693f000007OoRwAAKthe command that I'm performing is :

<code>library(magrittr)

subsetting the data for MAC-OS & sorting by event-timestamp.

acDF <- eventsDF %>% SparkR::select("device", "event_timestamp") SparkR::filter("device = macOS") %>% SparkR::arrange("event_timestamp") display(macDF) </code>

 
<br>

And the error I get is:

<code>Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'arrange': unable to find an inherited method for function ‘filter’ for signature ‘"character", "missing"’
Some(<code style = 'font-size:10p'> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'arrange': unable to find an inherited method for function ‘filter’ for signature ‘"character", "missing"’ </code>)

Any leads on where the mistake is would be highly appreciated, I'm unable to find out what am I missing on from the error code.

0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group