Skip to content

Commit

Permalink
NNSold - теперь возврашает NULL когда нет данных
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Guk authored and Dima Guk committed Jul 18, 2016
1 parent d35fbb1 commit 910e2fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/new/NNSold.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ plotNNSold <- function(sql)

parse <- readTable(queryData, 'dima_parser');

if(length(parse)==0){
return(NULL)
}

maxPrice = log10(max(parse$price+parse$shipping,na.rm = T))+0.2;
myBreaks = seq(-0.1, maxPrice, by = 0.1);

Expand Down

0 comments on commit 910e2fe

Please sign in to comment.