When an sql query is run and there is no data the dataframe returns a dataframe without the expected columns. This causes it to fall over with obscure errors later on. The solution to this is initialising the dataframe stubs prior to putting the data into them.
The following package might be of use.
When an sql query is run and there is no data the dataframe returns a dataframe without the expected columns. This causes it to fall over with obscure errors later on. The solution to this is initialising the dataframe stubs prior to putting the data into them.
The following package might be of use.