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

Description Usage Arguments Value Examples

Description

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

Usage

1
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

1
2
3
4
# to import image from system 'extdata' folder.
# user cab directly specify the path of the image in 'img2points()'.
imagePath <- system.file("extdata","powercurve.jpeg", package="WindCurves")
img2points(imagePath)

WindCurves documentation built on May 2, 2019, 2:06 a.m.