2021-04-28

Using %T>% to complete a pipeline for an object

So far I have the result stored into the object result2.
The goal of the pipe is to take this filtered dataset,
THEN extract body_size and brain volume data,
THEN plot a scatterplot of body size and brain volume
THEN return a summary

I am trying to accomplish this by using the pipe operators to complete this pipeline, but I am doing something wrong.

result2<-fish %>%
  filter(body_size>0) %>%
  extract(body_size, brain_volume) %T>%
  plot() %>%
  summary()


from Recent Questions - Stack Overflow https://ift.tt/3tYFDpz
https://ift.tt/eA8V8J

No comments:

Post a Comment