Skip to content
Advertisement

Tag: as.date

Adding data based on date from another dataframe

I have two datasets. One with multiple dates: and one with sunrise and sunsets data: I want to add a column to the first dataframe with either “Day” or “night”, based on whether the date and time from the first dataframe is between the sunrise and sunset time and dates. I tried copying and if_else functions, but the length of

Advertisement