R & Python Tiles

R & Python Tiles

Getting an error in the R tile but not native R?

Member
edited March 2023 in R & Python Tiles

Hello!

 

This has stumped me - wondering if anyone could help me out Smiley Happy

 

Part of my code is attempting to sort by the max date. This works just fine in RStudio, but for some reason not in the R tile within Domo: 

  1. summarize(Date = max(Date))

Error:

 

  1. 1: In if (class(df[[colName]]) == "factor" | verbatim) { :
  1. the condition has length > 1 and only the first element will be used
  1. 2: In if (class(df[[colName]]) == "factor" | verbatim) { :
  1. the condition has length > 1 and only the first element will be used

I checked the class type in RStudio & none returned a factor either. For reference, I am using dpylr. 

 

Thanks!

Comments

Welcome!

It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign In