Row wise concatenation and replacing nan with common column values

Below is the input data df1 A B C D E F G Messi Forward Argentina 1 Nan 5 6 Ronaldo Defender Portugal Nan 4 Nan 3 Messi Midfield Argentina Nan 5 Nan 6 Ronaldo Forward Portugal 3 Nan 2 3 Mbappe Forward France 1 3 2 5 Below is the intended output df A… Read More Row wise concatenation and replacing nan with common column values

Conditionally filling missing data based on other variables in R

enter image description here sorry for adding the screenshot, I download data from https://www.kaggle.com/datasets/rikdifos/credit-card-approval-prediction Can someone inform me about the way to fill those NA values that the occupation column has? I create a new variable to determine whether an applicant is working or not and I want to fill NA values as zero if… Read More Conditionally filling missing data based on other variables in R