/usr/share/doc/r-cran-sp/tests/point.in.polygon.Rout.save is in r-cran-sp 1:1.0-15-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | R : Copyright 2004, The R Foundation for Statistical Computing
Version 2.0.1 (2004-11-15), ISBN 3-900051-07-0
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for a HTML browser interface to help.
Type 'q()' to quit R.
> library(sp)
>
> # open polygon:
> print(point.in.polygon(1:10,1:10,c(3,5,5,3),c(3,3,5,5)))
[1] 0 0 3 1 3 0 0 0 0 0
> # closed polygon:
> print(point.in.polygon(1:10,rep(4,10),c(3,5,5,3,3),c(3,3,5,5,3)))
[1] 0 0 2 1 2 0 0 0 0 0
>
|