datanormXY: normalize data coords

Description Usage Arguments Details Value Examples

Description

normalize data coords

Usage

1

Arguments

data

frame with x and y components

Details

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

Value

a normalized data frame

Examples

1
2
3
4
5
6
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]

geozoning documentation built on May 2, 2019, 9:43 a.m.