[R] data format for ppinit
Susumu Tanimura/谷村 晋
umusus at net.nagasaki-u.ac.jp
Mon Sep 10 08:28:01 CEST 2001
After installation of R into VineLinux2.1.5, I started to enjoy statistics
following some instruction, and found it very useful.
One of my main purpose to use R is to try spatial statistics. Since
library named "spatial" has already installed, I just tried ...
> library(spatial)
> towns <- ppinit(test.dat)
------- test.dat -------
x,y
4,7
5,7
5,8
5,9
6,7
6,8
6,9
7,8
--------------------------
However, following error was given.
Error in scan(tfile, list(xl = 0, xu = 0, yl = 0, yu = 0, fac = 0),n =5, :
"scan" expected a real, got "5,7"
Also, I tried...
>towns <- ppinit("test.dat",xl=0,xu=10,yl=0,yu=10,fac=1)
Error in ppinit("test.dat", xl = 0, xu = 10, yl = 0, yu = 10, fac = 1)
unused argument(s) (xl ...)
On manual, usage of ppinit is "ppinit(file)" but no format of file was
given. Only have it said "the file should contain, the number of points", a
header(ignored), xl xu yl yu scale, xy(repeated n times)."
Does someone know about the date format of ppinit ?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list