I have a data frame that I exported from lightroom to R.
In this data frame there is a grading system for the photographs where each is graded with stars from 1 (*) to 5 (*****)
I want to replace these stars with numbers but tried several functions (gsub
, replace
) with no success
Lightroom$Rating <- gsub("*", "1", Lightroom$Rating)
Lightroom <- replace(Lightroom, "*", "1")
Thank you for your help