Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
Fixes issue #21.
Browse files Browse the repository at this point in the history
  • Loading branch information
blasee committed Jan 8, 2019
1 parent eff5bb8 commit c21ef1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/cfData-plotMethods.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ windrose = function(speed, direction, facet, n_directions = 12,
legend_title = "Wind Speed", calm_wind = 0,
variable_wind = 990, n_col = 1, ...){

if (missingArg(direction))
if (missingArg(speed))
stop("speed can't be missing")

if (missingArg(direction))
Expand All @@ -121,7 +121,7 @@ windrose = function(speed, direction, facet, n_directions = 12,
}

if (!is.numeric(speed))
stop("wind speed need to be numeric")
stop("wind speeds need to be numeric")

if (!is.numeric(direction))
stop("wind directions need to be numeric")
Expand Down

0 comments on commit c21ef1a

Please sign in to comment.