英文: Make NA transparent when using a color palette-function 问题 这是我的数据框架: Test = structure(list(Corr_...
使用dplyr根据条件和列表分配列值。
英文: Assign column values based on condition and list with dplyr 问题 我有一个包含日期列和其他数据的tibble。我想根据日期落在特定范...
分开更宽的部分,第一半成为列名,第二半成为单元格值。
英文: separate_wider where first half becomes column name and second half becomes cell value 问题 df &am...
从一行中提取数据,创建一个新的列,每个ID对应一个列。
英文: Pulling data from a row up to a new column for each ID 问题 我有一个包含不同ID的多年数值的数据框。目前,它的显示方式如下: (可以使用...
如何将数学函数的xy坐标返回为任意长度的数据框?
英文: How to return xy-coordinates of a mathematical function into a dataframe of arbitrary length? 问题...
平滑置信区间和点估计在ggplot中
英文: Smooth confidence intervals and point estimated in ggplot 问题 以下是翻译好的代码部分: 我有以下数据: structure(list...
如何使用R解决方程中的未知数?
英文: How to use R to solve the unknowns in an equation? 问题 我有一个方程: 2/(1+exp(-4.292*x))-1 = 0.95 我想在不改...
`pivot_wider` 在 R 中引发 “! 无法子集化不存在的列。” 错误。
英文: pivot_wider causing "! Can't subset columns that don't exist." Error in R 问题 我...
pivot_longer 以创建多个变量。
英文: pivot_longer to create more than one variable 问题 pivot_test <- structure(list(year = 1991:199...
检查先前的数值是否以逻辑运算方式存在于数据集中 [R]
英文: Check if the previous value is present in the dataset with a logical operation [R] 问题 我有这个数据集 st...
298