I am passing data from SQL Server 2016 through the external script stored procedure to R for processing.

I want to either do e, or not do e depending on whether a cell at position [I,11] in a Data Frame has a integer value.

```
for(i in 1:2){
    if(d1[i,11]==""){
        d2[i,1]<-d1[i,1]
        d2$Ledger<-d1[i,2]
        d2$Account<-d1[i,3]
        d2$Title<-d1[i,4]
        d2$ActualTitle<-d1[i,5]
        d2$AccountNumber<-d1[i,6]
        d2$Sortcode<-d1[i,7]
        d2$PostCode1<-d1[i,8]
        d2$PostCode2<-d1[i,9]
        d2$AddressName<-d1[i,10]
        d2$MatchedID<-d1[i,11]
    }

```

I am struggling to find a way of doing this, please help.