我试图使用GPS坐标运行Delaunay三角测量。由于没有两个人可能具有相同的坐标,我使用抖动来添加一些变化。但问题是,当我导入.txt数据集时,我会丢失4个小数位(例如 2 - access("A"."REQUISITION_NO"="B"."REQUISITION_NO")
4 - access("POL"."ORDER_NO"="POLET"."ORDER_NO"(+) AND "POL"."LINE_NO"="POLET"."LINE_NO"(+) AND
"POL"."RELEASE_NO"="POLET"."RELEASE_NO"(+) AND "POL"."ORDER_NO"="POLET"."ORDER_NO"(+))
6 - access("SUPPLIER_ID"="A"."VENDOR_NO")
filter("CREATION_DATE">=TRUNC(SYSDATE@!)-INTERVAL'+00-06' YEAR(2) TO MONTH OR
"PURCHASE_ORDER_LINE_API"."FINITE_STATE_DECODE__"("POL"."ROWSTATE")<>'Closed' AND
"PURCHASE_ORDER_LINE_API"."FINITE_STATE_DECODE__"("POL"."ROWSTATE")<>'Cancelled' OR
"PURCHASE_REQ_LINE_API"."FINITE_STATE_DECODE__"("A"."ROWSTATE")<>'PO Created' AND
"PURCHASE_REQ_LINE_API"."FINITE_STATE_DECODE__"("A"."ROWSTATE")<>'Cancelled' OR
"I"."INVOICE_DATE">=TRUNC(SYSDATE@!)-INTERVAL'+01-06' YEAR(2) TO MONTH)
8 - access(ROWID=ROWID)
9 - access(ROWID=ROWID)
13 - access("POL"."ORDER_NO"="PO"."ORDER_NO")
15 - access(ROWID=ROWID)
18 - access("SUPPLIER_ID"="PO"."VENDOR_NO")
20 - access(ROWID=ROWID)
23 - access("SUPPLIER_ID"="I"."IDENTITY")
28 - access("USER_NAME"=NVL(RTRIM(SUBSTR(USERENV('CLIENT_INFO'),1,30)),USER@!) AND "ENTRY_CODE"='COMPANY')
29 - access("I"."COMPANY"="ENTRY_VALUE")
30 - filter("I"."CREATOR"='MAN_SUPP_INVOICE_API' AND "I"."PARTY_TYPE"='SUPPLIER' AND
"I"."ROWSTATE"<>'Cancelled')
在R中变为-32.59551498
。小数位数的减少导致2个人具有相同的&#39;坐标(例如-32.59551
; Ind1 = -32.59551498
,因此两者都在R中显示为Ind2 = -32.59550923
,因此我无法运行Delaunay三角剖分。
任何建议或帮助将不胜感激!
答案 0 :(得分:0)
正如Tim Biegeleisen所指出的,请确保这是一个关于导入的问题,而不是在屏幕上打印数字。
x <- c(-32.59551498,-32.59550923)
x # return
[1] -32.59551 -32.59551
但所有小数仍然存在:
print(x, digits = 10)
[1] -32.59551498 -32.59550923
您可以使用以下方法控制打印数值时要打印的位数:
options(digits = 10)
x
[1] -32.59551498 -32.59550923