Issue identified by Cecelia
"However, if there are more than 2 encoded values, i.e. more than one blank column, the code gives an error. In .read_ds_file, the dat after reading in the file is fine – it has blank headers. However, at the point where you have “dat <- dat[!blank.rows,!blank.cols]”, apparently R doesn’t allow columns to have the same name – so the first blank column header is still blank but it then labels the next column header as “.1”. So in .read_dd_file, when you want to label the columns as X_1, X_2, etc, it only recognizes one column as blank so you get X_1 and still left with “.1” as a column header. "
Issue identified by Cecelia "However, if there are more than 2 encoded values, i.e. more than one blank column, the code gives an error. In .read_ds_file, the dat after reading in the file is fine – it has blank headers. However, at the point where you have “dat <- dat[!blank.rows,!blank.cols]”, apparently R doesn’t allow columns to have the same name – so the first blank column header is still blank but it then labels the next column header as “.1”. So in .read_dd_file, when you want to label the columns as X_1, X_2, etc, it only recognizes one column as blank so you get X_1 and still left with “.1” as a column header. "