Quantcast
Viewing all articles
Browse latest Browse all 4448

Understanding the Data: how to combine two files with different number of columns?

I need to combine two data sets - training and test sets, which have a different number of columns (12 and 11, respectively).
But in version R v.3.6.4. as has showing on course “Big Mart Sales Prediction using R" for R v.3.4.0 (URL: https://courses.analyticsvidhya.com/courses/take/big-mart-sales-prediction-using-r/texts/6120085-understanding-the-data), following command:

test [, Item_Outlet_Sales: = NA]

leads to an error and the impossibility of further manipulation of the data.

Can someone tell me the working code for the version R v.3.6.4 working in RStudio?
Thank you very much in advance!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles