Hi R fans !
I have 2 dataframe :
df_1 : Keywords and Search Volume (and many NAN in Search Volume)
df_2 : Keywords (the ones concerned by NAN in df_1) and Search Volume
I would like to replace Search Volume with NAN in df_1 by Search Volume available in df_2
Thank you for your reply
Well your suggestion leads me to the right solution, here it is :
df <- left_join(df1, df2, by="h1")
df$new_search_volume <- ifelse(is.na(df$search_volume),
df$Search.Volume,
df$search_volume)
"Search.Volume" data from df2
"search_volume" data from df1