File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,12 @@ plot_emoji <- function(data,
8282 # importing Emoji dictionary
8383 Dictionary <- read.csv(system.file(" EmojiDictionary.csv" , package = " WhatsR" ))
8484
85+ # dedpulicating dictionary
86+ Dictionary <- Dictionary [Dictionary $ status != " minimally-qualified" & Dictionary $ status != " unqualified" ,]
87+
88+ # absolutely ensure deduplication
89+ Dictionary <- Dictionary [! duplicated(Dictionary $ Desc ),]
90+
8591 # setting starttime
8692 if (as.POSIXct(starttime ,tz = " UTC" ) < = min(data $ DateTime )) {
8793 starttime <- min(data $ DateTime )
@@ -160,7 +166,6 @@ plot_emoji <- function(data,
160166 NewFrame <- cbind.data.frame(NewDates ,NewSender ,NewEmoji )
161167
162168 # creating time data
163- # TODO: Maybe this is where it goes wrong?
164169 NewFrame $ hour <- as.POSIXlt(NewFrame $ NewDates ,tz = " UTC" )$ hour
165170 NewFrame $ year <- as.POSIXlt(NewFrame $ NewDates ,tz = " UTC" )$ year + 1900
166171 NewFrame $ day <- weekdays(as.POSIXlt(NewFrame $ NewDates ,tz = " UTC" ), abbreviate = FALSE )
You can’t perform that action at this time.
0 commit comments