img2points: A function to capture Speed Vs Power discrete points from...

View source: R/img2points.R

img2pointsR Documentation

A function to capture Speed Vs Power discrete points from power curve image

Description

A function to capture Speed Vs Power discrete points from power curve image

Usage

img2points(imagePath, n)

Arguments

imagePath

as Path of a power curve image

n

as number of points to be captured from the curve image (default value is 15)

Value

data.frame with two columns, i.e., wind speed and wind power

Examples

## Not run: 
# to import image from system 'extdata' folder.
# user can directly specify the path of the image in 'img2points()'.
imagePath <- system.file("extdata","powercurve.jpeg", package="WindCurves")
img2points(imagePath)
## End(Not run)

WindCurves documentation built on May 1, 2022, 9:05 a.m.