given an odour response matrix with columns for different odours and rows for different sweep timepoints, reorder columns in desired order adding NAs for missing odours
addnacols(mat, odours)
mat | odour response matrix where odours are coloumns and cells are rows |
---|---|
odours | character vector of odour names |
gives back a tidyied up matrix with coloumns aorderd by
odours
adding NA
s for missing odour response data