Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
dplyr:summary函数中的min函数导致R崩溃_R_Dplyr - Fatal编程技术网

dplyr:summary函数中的min函数导致R崩溃

dplyr:summary函数中的min函数导致R崩溃,r,dplyr,R,Dplyr,由于过滤器,我有一个空的tbl_df: library(dplyr) df <- tbl_df(data.frame(A=c(1))) df <- df %>% filter(A > 1) 这很好: Source: local data frame [1 x 1] Mean 1 NaN 但是min函数会导致崩溃: df %>% summarise(Min=min(A, na.rm=T)) 在RStudio中,它将终止R会话,但在R命令行中,我得到了更多

由于
过滤器
,我有一个空的
tbl_df

library(dplyr)
df <- tbl_df(data.frame(A=c(1)))
df <- df %>% filter(A > 1)
这很好:

Source: local data frame [1 x 1]

  Mean
1  NaN
但是
min
函数会导致崩溃:

df %>% summarise(Min=min(A, na.rm=T))
在RStudio中,它将终止R会话,但在R命令行中,我得到了更多详细信息:

 *** caught segfault ***
address 0xb8599d8, cause 'memory not mapped'

Traceback:
 1: .Call("dplyr_summarise_impl", PACKAGE = "dplyr", df, dots)
 2: summarise_impl(.data, dots)
 3: summarise_.tbl_df(.data, .dots = lazyeval::lazy_dots(...))
 4: summarise_(.data, .dots = lazyeval::lazy_dots(...))
 5: summarise(., Min = min(A, na.rm = T))
 6: function_list[[k]](value)
 7: withVisible(function_list[[k]](value))
 8: freduce(value, `_function_list`)
 9: `_fseq`(`_lhs`)
10: eval(expr, envir, enclos)
11: eval(quote(`_fseq`(`_lhs`)), env, env)
12: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
13: df %>% summarise(Min = min(A, na.rm = T))

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Selection:
我在
max
上遇到了类似的崩溃,我不知道是否还有更多的函数出现了问题


我的
dplyr
版本是
0.4.2
,R版本是
3.2.2
,操作系统是Ubuntu 14.04。请让我知道我的问题是否可以重现,有没有办法解决这个问题?

dplyr
version
0.4.3
的行为相同。SEGFULTS总是错误。您应该将此情况报告给dplyr开发团队。与
dplyr
版本
0.4.3
的行为相同。Segfaults总是bug。您应该将此报告给dplyr开发团队。
 *** caught segfault ***
address 0xb8599d8, cause 'memory not mapped'

Traceback:
 1: .Call("dplyr_summarise_impl", PACKAGE = "dplyr", df, dots)
 2: summarise_impl(.data, dots)
 3: summarise_.tbl_df(.data, .dots = lazyeval::lazy_dots(...))
 4: summarise_(.data, .dots = lazyeval::lazy_dots(...))
 5: summarise(., Min = min(A, na.rm = T))
 6: function_list[[k]](value)
 7: withVisible(function_list[[k]](value))
 8: freduce(value, `_function_list`)
 9: `_fseq`(`_lhs`)
10: eval(expr, envir, enclos)
11: eval(quote(`_fseq`(`_lhs`)), env, env)
12: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
13: df %>% summarise(Min = min(A, na.rm = T))

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Selection: