Learn R Programming

geozoning (version 1.0.0)

datanormXY: normalize data coords

Description

normalize data coords

Usage

datanormXY(data)

Arguments

data

frame with x and y components

Value

a normalized data frame

Details

normalize data coordinates between 0 and 1 with different ratios for x and y

Examples

Run this code
# NOT RUN {
nPoints=500
x=runif(nPoints, min=0, max=1)
y=runif(nPoints, min=0, max=1)
range(x) # not [0,1]
tabData=data.frame(x=x,y=y)
tabData=geozoning:::datanormXY(tabData) # x,y ranges are now [0,1]
# }

Run the code above in your browser using DataLab