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

user15215
user15215 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: 

summarize(Date = max(Date))

Error:

 

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