Please help me to write a code in combining multiple csv files in R using a common field in all the files (but each file has diff no. of rows like 702, 666, etc.) and for missing values I need NA in the place of missing values.
For your easy understanding, here I am showing how an individual file looks since here I cannot attach multiple files. I am just pasting one. name is the common filed in all the files. With the filename as its header along with its column name.
name projected_leaf_area treatment species g_alias replicates
1 A-2:1 215.209 WW Chickpea ICCRIL03-0013 2
2 A-2:2 148.404 WW Chickpea ICCRIL03-0119 2
3 A-2:3 206.566 WW Chickpea ICCRIL03-0007 2
. .. . . . ... ........ ......
. .. . . . ... ........ ......
702 B-2:234 242.06 WW Chickpea ICCRIL03-0143 4
please help me to merge the files friends... thanks for your time...