腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(627)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
2
回答
dplyr::filter“未注册
tidyselect
变量”
dplyr::filter(ind == contains("A")) 我明白了:Error in filter_impl(.data, quo) : Evaluation error: No
tidyselect
浏览 11
修改于2018-09-03
得票数 6
回答已采纳
1
回答
在未实现
tidyselect
帮助程序的函数中使用
tidyselect
帮助程序
如何在没有实现的函数中使用dplyr/
tidyselect
"select助手“(如: )来选择一系列的连续变量?#> 7 30.4 4 95.1 113 3.77 1.513 16.90 1 1 5 2# With
tidyselect
syms(names(
tidyselect
::eval_select(quote(vs:gear), .)))
浏览 2
提问于2020-03-09
得票数 2
回答已采纳
1
回答
replace_na与
tidyselect
?
假设我有一组列的数据框架,在这些列中,我想做相同的NA替换:例如,在上面的数据框架中,我想做一些(比如 replace_na(dd, where(is.numeric), 0) )来替换列a和b中的NA值。num_cols <- purrr::map_lgl(dd, is.numeric) r <- as.list(setNames(rep(0, sum(num_cols)), names(dd)[num_
浏览 9
提问于2021-12-13
得票数 7
回答已采纳
2
回答
自定义函数中的
Tidyselect
我想使用var1:var20
tidyselect
语法创建一个自定义函数,该函数可以应用于数据帧中的一系列变量,但我遇到了一个错误。
浏览 3
修改于2022-05-25
得票数 0
回答已采纳
1
回答
pivot_longer with
tidyselect
where,where,但不是谓词?
我尝试将
tidyselect
函数where与pivot_longer一起使用,但得到了
tidyselect
包不支持谓词的错误。这看起来有点不合理,所以很可能我有一个语法错误。
浏览 1
提问于2020-05-28
得票数 2
1
回答
无法与`group_by()`和‘`fill()’结合使用
tidyselect
` and ()‘
为了省去输入所有~100列的麻烦,我尝试了下面所示的
tidyselect
everything()参数。但这会产生一个可以理解的错误。我不知道怎么解决这个问题。
浏览 8
提问于2019-10-24
得票数 2
回答已采纳
1
回答
tidyselect
:: where ()不一致:where is where()?
Tidyselect
建议换行where(~str_replace...)但随后抱怨说,即使我可以在其他实例中使用where(),它也找不到它。str_replace(., "Var_1_", paste0("Gov't surveillance: video wave")), : could not find function "where",但通过
tidyselect
浏览 2
修改于2021-02-23
得票数 0
1
回答
您能列出
tidyselect
‘`everything()的例外吗?
如何在使用
tidyselect
::everything()时列出此异常... %>% fill(everything, .direction
浏览 4
提问于2019-10-23
得票数 4
2
回答
如何通过
tidyselect
::starts_with(.)dplyr函数等?
我希望将列选择传递给ifelse语句中的dplyr函数(跨)。tibble(var1 = c(NA,1,2), var3 = c(NA,0,0), ) -> testtest %>% select(starts_with("var")) %>% ifelse(if_all
浏览 7
提问于2022-06-30
得票数 0
回答已采纳
1
回答
R标记编织错误,未选择
tidyselect
变量
我试图将我的代码编织到一个html文件中;但是,当文件到达包含函数pivot_longer()的代码行时,就会出现一个错误()。我将在下面附上我的代码。有什么建议吗?library(dslabs)library(tidyr)dt <- read.csv("~co2-2019.csv", stringsAsFactors = FALSE) dt[,i] <- apply(dt[,i], 2, function(x) as.numeric(as.character
浏览 4
提问于2020-02-05
得票数 0
回答已采纳
1
回答
如何在自定义包中使用
tidyselect
"where“?
我本来打算在代码中使用它作为
tidyselect
::where(),但是函数没有导出。出于同样的原因,您不能使用@importFrom
tidyselect
where。问题 如何在不将where标记为未定义的情况下使用包中的
tidyselect
?
浏览 1
提问于2020-06-18
得票数 16
回答已采纳
1
回答
将
tidyselect
助手函数添加到向量中
我是否可以使用更多的
tidyselect
助手函数作为向量的一部分?. #> ℹ See <https://
tidyselect
.r-lib.org/reference/faq-selection-context.html>.
浏览 4
修改于2020-07-04
得票数 1
回答已采纳
2
回答
如何使用
tidyselect
助手初始化变量?
.
tidyselect
版本1.0.0rlang版本0.4.5dplyr版本0.8.5
浏览 3
修改于2020-03-24
得票数 2
回答已采纳
2
回答
使用
tidyselect
在一个具有变异和
我经常使用代码从值中删除前缀: %>% mutate(A.1_recipient = str_replace(A.1_recipient, "HLA-", ""))我还使用
tidyselect
%>% mutate(across(ends_with("recipient"), ~str_replace(., "HLA-", "")))我想把它开发成一个函数,它可以处理单个列的输入或
tidyselect
浏览 11
提问于2022-08-22
得票数 0
回答已采纳
1
回答
为什么可以在dplyr helper函数"where“中检测到
tidyselect
helper函数”where“?
"
tidyselect
“包提供了一个选择助手函数where。where用于通过自定义函数选择数据框列。它是来自"
tidyselect
“的一个内部函数。这意味着where不会加载到您的名称空间,您只能通过
tidyselect
:::where调用它。#> 1 87 13 31 15 5 3 49 38 在本例中,where是在没有前缀“
tidyselect
浏览 5
提问于2020-11-13
得票数 2
回答已采纳
1
回答
是否可以在cols_only()函数中使用
tidyselect
帮助程序?
data1 = col_integer(),但是,如前所述,我的真实数据集有更多的列,所以我希望使用
tidyselect
是否有可能以这种方式使用
tidyselect
助手?
浏览 12
提问于2022-09-07
得票数 0
1
回答
自定义函数:将
tidyselect
参数作为字符串返回,而不执行参数。
参数是一个
tidyselect
函数,用于从数据帧中提取指定的列。contains("2"))"Error: `contains()` must be used within a *selecting* function.> customfunction(df=df,evars=c("v
浏览 8
提问于2022-02-28
得票数 2
回答已采纳
1
回答
如何将
tidyselect
样式的列名列表拼接到我的函数调用中
我试图赋予它类似于pivot_longer()的
tidyselect
语义,因为我只需要将列名转发到summary(a = n_distinct(...))调用中。B", "a", 3, 3, group_by(G) 我期望调用remove_duplicates(test, c(v1, v2)) (使用
tidyselect
所以就像这样 tab %>% summarise(a = do.call(n_distinct,
浏览 25
提问于2020-09-14
得票数 1
回答已采纳
1
回答
tidyselect
更改在R中选择函数时如何引用变量名的外部向量
ambiguous.i See <https://
tidyselect
.r-lib.org如果我重构为: dplyr::select(total, all_of(cols.to.sum)) 这种行为已经从
tidyselect
_0.2.5变成了
tidyselect
唯一的选择是坚持使用
tidyselec
浏览 4
提问于2020-04-04
得票数 8
2
回答
用
tidyselect
和正则表达式重命名R数据的列
你知道如何用
tidyselect
和regex做这件事吗?
浏览 4
提问于2021-06-26
得票数 0
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券