I have a measure in my tableau data called "time". I'd like to create a calculated field using R. I have RServe successfully installed and I do this:
SCRIPT_REAL('hour(.arg1) + minute(.arg1)/60 + second(.arg1)/3600 ', [time])
but I get the error in the tableau calculated field:
ERROR: all fields must be aggregate or constant when using table calculation functions or fields from multiple sources.
ANy idea what I am doing wrong? Thank you.