Merge data frames

Hello,

I have a data frame of 56879 observations. After I run the regression, I get 48946 observations. I have tried different things, like merge them and use NAs for the missing values, then changing them to 0 after, but I keep getting :
"Error:
! Assigned data value must be compatible with existing data.
:heavy_multiplication_x: Existing data has 56879 rows.
:heavy_multiplication_x: Assigned data has 48946 rows.
:information_source: Only vectors of size 1 are recycled."

Any suggestions on how to deal with this?

Please show the code you are running and a small sample of the data. To share the data use the dput() function. If your data frame is named DF, run

dput(head(DF, 20))

and post the output.