I am trying to use multiple Icons based on an "Icon" column in my data frame. The data frame is split by IDs (split(data, f = data$ID)) and I have tried making my own function and using the makeIcon function. I keep getting the error "UseMethod: no applicable method for 'metaData' applied to an object of class "NULL"". Do you know how I can fix this or use another solution?
I am trying to use multiple Icons based on an "Icon" column in my data frame. The data frame is split by IDs (split(data, f = data$ID)) and I have tried making my own function and using the makeIcon function. I keep getting the error "UseMethod: no applicable method for 'metaData' applied to an object of class "NULL"". Do you know how I can fix this or use another solution?