英文: Calculate the row-wise weighted sum for a set of columns 问题 以下是代码的翻译部分: 我有如下的数据框: > library(t...
如何从两个不同的数据框中对列进行子集化?
英文: R: How to subset dataframe over columns from 2 different dataframe? 问题 使用R代码如何从两个不同的数据框中对列进行子集化?...
获取子集函数中的变量值 – R
英文: Get variable value in subset function - R 问题 在尝试获取子集函数中变量值时,我发现了一个问题。当运行代码时,我收到以下消息:“警告:Error in...
将神经网络的概率转化为R中的预测
英文: Converting neural net probablities into predictions in R 问题 请原谅我的无知,我正在学习模型背后的理论,特别是神经网络。我试图使用li...
为什么 ggplot2 中的 ‘dodge’ 命令对我无效?
英文: Why is the 'dodge' command in ggplot2 not working for me? 问题 I can help you with the tra...
R, brms:在函数调用内部保存模型到文件会保存整个本地环境
英文: R, brms: saving models to file inside a function call saves the entire local environment 问题 我用br...
将集群的元素放入数据框中
英文: Putting the Elements of a Cluster into a Dataframe 问题 以下是代码部分的中文翻译: # 使用函数主成分分析(functional princ...
尝试运行格兰杰因果关系检验
英文: Trying to run a Granger Causality test 问题 我有我的数据集,看起来像这样 我然后使用我的 R 代码 我收到错误 Error in .subset(x, ...
数据整理:扩展和 consilidate 行。
英文: Data wrangling widen and consolidate rows 问题 我想要扩展一些行,然后使用R来合并这些行。 当我使用pivot_wider(names_from = ...
按日期重新排列循环项目
英文: fct_reorder by date on recurring items 问题 尝试创建复杂抗生素疗程的甘特样式图表,有时需要给患者。有时抗生素剂量会更改,然后恢复到原始剂量,或者在稍后日...
298