I have a table of Variants Data, giving the frequency of length variants with respect to associated SNPs:

```
          A    C    G    T <NA>
  -1      0   64    0   63    2
  -2      0    0    0    1    0
  0       2 5995    2 5704  203
  1       0   13    0   16    1
  <NA>    0   27    0   21    0

```

As you can see, there is both and row and an column. I want to remove these but seem to be struggling specifying these with script. I have tried the following, but this only returns the original table shown above:

```
    if(any(is.na(colnames(Data)))){
 -which(is.na(colnames(Data)))
}

if(any(is.na(rownames(Data)))){
  -which(is.na(rownames(Data)))
}

Data

```

Please could someone tell me either where my script is failing, or how I can go about removing the row and column?
Thanks