powered by
Function to translation points by shifts on the x-axis or y-axis
f_trans(x, y, t, d)
Returns a dataframe with the original points plus the respective translation of these points.
is a vector length n with coordinate x of point
is a vector length n with coordinate y of point
is a vector with shifts on the x or y-axis
is a direction translation, 1)x or 2)y
Luciane Ferreira Alcoforado
x=c(1,1) y=c(0,1) t=c(-3, 3) d=1 f_trans(x,y,t,d)
Run the code above in your browser using DataLab