     }
 }
 
-func read_csv(filename:String, _ skip_header:Bool=true, _ completeDataRow: Int=1) -> csvFile{
+// for matrix csv
+func read_csv(filename:String, _ skip_header:Bool=true, _ rowWithoutMissingValues: Int=1) -> CSVFile{
     var x: String?
     do {
         x = try String(contentsOfFile: filename, encoding: NSUTF8StringEncoding)

    write_csv(csv.data, filename:filename, header:csv.header)
}

func write_csv(x:matrix, _ header:[String], _ filename:String){
    var seperator=","
    var str = ""
    var i:Int=1

    var done = zeros((rows-startrow, columns))
    done.flat.grid = array
    if (skip_header==true){
    return CSVFile(data: done, header: y[0].componentsSeparatedByString(","))
    }
    else{
         return CSVFile(data: done, header: [""])
    }
}

