Learn R Programming

WindCurves (version 0.2)

img2points: 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

Run this code
# 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)
# }

Run the code above in your browser using DataLab