rxCall中的错误(“RxMergeXdf”,参数)

rxCall中的错误(“RxMergeXdf”,参数),r,revolution-r,R,Revolution R,我正在尝试合并两个.Xdf文件,下面是相同的代码: rxMergeXdf(inFile1 = "/poc/revor/data/se_lif_1.xdf", inFile2 = "/poc/revor/data/ext_merchant_account_filtered.xdf", outFile = "/poc/revor/data/se_lif_2.xdf", matchVars = c("SE_NO"), type = "inner", missingsLow = TRUE,decre

我正在尝试合并两个.Xdf文件,下面是相同的代码:

rxMergeXdf(inFile1 = "/poc/revor/data/se_lif_1.xdf",
inFile2 = "/poc/revor/data/ext_merchant_account_filtered.xdf", 
outFile = "/poc/revor/data/se_lif_2.xdf", matchVars = c("SE_NO"), 
type = "inner", missingsLow = TRUE,decreasing = FALSE,verbose = 1,
overwrite = TRUE,rowsPerOutputBlock = -1)
但在执行时出现此错误:

Memory buffer limit: 723679 Mb.
Merge Type: 1, Inner
Time to merge data file: 0.025 seconds
Merged data file: /poc/revor/data/se_lif_2.xdf
Error in rxCall("RxMergeXdf", params) :
创建的输出.xdf文件大小为260字节,但无法打开它。当尝试使用rxGetInfoXdf获取此.Xdf的详细信息时,将显示以下消息:

Error in rxCall("RxReadXdf", params) :
  This is an old version of a DataFile, and cannot be read.
下面是两个.Xdf文件的文件结构:

1) se_lif_1.xdf

File name: /poc/revor/data/se_lif_1.xdf
Number of observations: 832787765
Number of variables: 2
Number of blocks: 4
Compression type: zlib
Variable information:
Var 1: SE_NO, Type: numeric, Low/High: (1030026553.0000, 9992702050.0000)
Var 2: TOT_CV_LIF, Type: numeric, Low/High: (-2348.7600, 40587.3900)
Data (10 rows starting with row 1):
        SE_NO TOT_CV_LIF
1  1030026553     314.45
2  1030049191      60.00
3  1030227870    2643.71
4  1040124257     389.00
5  1040608119      85.59
2) ext_商户_账户_.xdf:

File name: /poc/revor/data/ext_merchant_account_filtered.xdf
Number of observations: 10000
Number of variables: 2
Number of blocks: 4
Compression type: zlib
Variable information:
Var 1: SE_NO, Type: numeric, Low/High: (3047490719.0000, 9380463753.0000)
Var 2: SEIMS_INDUS_DS_CD, Type: character
Data (10 rows starting with row 1):
        SE_NO SEIMS_INDUS_DS_CD
1  5510918899               499
2  3132775164               915
3  4107745093               930
4  3125354860               248
5  5510918923               499
有人能帮我解决这个问题吗。我看了代码,但我觉得一切都很好

提前感谢您的帮助……:)

干杯


Amit

我在合并两个数据帧时遇到了同样的问题。当右数据框中的左数据框的合并变量没有匹配值时,即输出数据框为空时,出现问题。
低/高值范围可能重叠,但“matchVars”中可能没有匹配项

您的xdf文件可能已损坏。查看将它们作为数据帧读入内存是否有效。如果出现问题,可以将
rxReadXdf
numRows
参数一起使用,以限制内存使用。