英文: Animate / dynamically change custom plot annotation gganimate with relation to transition states...
如何根据字符串向量选择数据框的列,进行精确匹配?
英文: How to select the columns of a dataframe based on a vector of strings, matching for exact coinci...
mutate_if在R中与case_when一起使用的多个条件
英文: mutate_if multiple conditions along with case_when in R 问题 我想对那些是因子且只有2个水平的列应用case_when函数,而且它们的名...
如何根据数据帧中的分组来增加数字距离?
英文: How to increment a numeric distance based on grouping in a data frame? 问题 在R中,如果给定一个数据框,其中第一列是分组...
你可以使用以下方法在基本R中找到对象中给定值的索引:
英文: How do I find the indices given value in base R by object? 问题 这可能对您来说似乎有些奇怪,因为在dplyr中可以轻松解决类似问题。...
在R中基于特定参数合并多个观测数据。
英文: Collapsing multiple observations based on specific parameters in R 问题 我对R相当陌生。我有一个包含8081个观测值和113...
在数据框中的循环中将box.test的结果添加到新列中。
英文: Add results of box.test within a loop in a new column of dataframe 问题 我有一个包含许多时间序列的数据集。我想使用Box检验...
添加后缀到一个新列
英文: Add a suffix to a new column 问题 旨在在应用“left”函数后创建一个名为“bd_acct_left”的新列,其中包含后缀“_left”。 新DF列 Study ...
在R中不同范围内的数值
英文: Values falling into different ranges in R 问题 我有一个名为grd的网格,其中包含不同的范围,如下所示: > grd count treshol...
在 for 循环中重命名多个列表项。
英文: Rename multiple lists items in for loop 问题 我有多个具有相同数量项目的列表。我想在循环中重命名所有列表项。例如,从列表项名称“a,b,c”,我想将它们...
298