How to convert csv into ped formate?

I want to convert a genotype data into numeric (0,1 and 2) format

Genotype data

numeric formate

I tried to make this conversion using Plink. How can I read .csv file into Plink? How can I make this conversion? What about missing data?

Thanks.