英文: How to gsub using patterns 问题 我有一个名为X的列表,其中元素名称如下: down_PK56c-t_S5_L001.clones_IGH 我想要将元素重命名为类似这...
R survminer::ggsurvplot无法合并,因为存在”atomic vector”。
英文: R survminer::ggsurvplot can't combine due to "atomic vector"? 问题 可复现的示例: require(S...
R:自动化解决数据框中的许多方程组
英文: R: Automate solving many systems of equations in data frame 问题 我正在处理一个数据集,该数据集将解决包含2个未知数的2个方程组的简...
使用时间条件而不是季度/月份来改变情感指标(使用dplyr)。
英文: Mutating a sentiment indicator using time conditions, rather than quarter/month (dplyr) 问题 我有一个R...
重新排列R中表格table1中的因子水平。
英文: Reorder factor levels in table1 in R 问题 I am putting together a descriptive statistics table in ...
如何在每列中计算多个加权平均值?
英文: How can I calculate multiple weighted means in each column? 问题 I am trying to find a way to calc...
将重复项放在同一行,R
英文: Put duplicates in same row, R 问题 以下是翻译好的内容: 这个问题可能已经在其他地方有答案,但我无法找到正确的措辞来搜索。 我有这样的数据: df <- s...
如何在使用`cbind`函数时保持数据框行的顺序?
英文: How can I keep the order of the row of dataframe while cbinding? 问题 我正在尝试创建一个函数,用于从agricolae包的HS...
一个二分递归函数的行为不如预期 (R)
英文: A bisection recursive function behave not as expected (R) 问题 我尝试使用递归实现一个简单的二分算法。我以为它有效,但后来想测试它与使...
将具有不规则名称的列变为行。
英文: pivot columns with irregular names into rows 问题 df2 <- structure(list(A = c("A_1_01"...
298