diff --git a/main.r b/main.r index 525678e3a39d8243c7254918b5140268cf345997..d8bfd47e4c66f23725741cbd7726e445c4afca3e 100644 --- a/main.r +++ b/main.r @@ -31,7 +31,8 @@ suppressMessages({ library(readxl) library(writexl) library(tidyverse) - +library(lubridate) + source("./function_load.R") source("./download_get_key.R") @@ -180,5 +181,16 @@ cleaned_df$remindercount <- "0" cleaned_df$completed <- "N" cleaned_df$usesleft <- "1" +#sort at the beginning of the dataframe +list_for_email_sort <- c("Niki2007dc@gmx.com","Nadine.Glaser97@web.de","Jasmin.kroeber@gmx.de") +for (element in list_for_email_sort){ + specific_rows <- cleaned_df[cleaned_df$email == element, ] + cleaned_df <- cleaned_df[cleaned_df$email != element, ] + cleaned_df <- rbind(specific_rows, cleaned_df) +} + + + + # after cleaning . start with the user query #### -function_start() \ No newline at end of file +function_start()