英文: Lag of every nth element 问题 我有一个数据框如下: df <- data.frame(date = seq(from = as.Date("2000-0...
有一个R函数可以根据以下条件对数据框进行变换并创建一个新的数据框吗?
英文: Is there an R function to mutate a dataframe and create a new dataframe based on the following c...
如何分组落在一定数值范围内的变量
英文: How to group variables that falls within a range of numbers 问题 以下是您要求的翻译内容: 我想要创建一个这样的数据框(DF): m...
如何在ggplot中重新排序以数字+字符串作为刻度标签的数字?
英文: How to reorder numbers+string used as ticker in ggplot? 问题 我尝试重新排列我的x轴刻度,使它们按照如下方式排列:DQQ1、DQQ2、D...
Is there a way to summarise by percentage in R while including the data in a new data frame?
英文: Is there a way to summarise by percentage in R while including the data in a new data frame? 问题 ...
重排 R 数据框架(根据特定条件更改为宽格式,重命名和重新排列列)
英文: Rearranging a R dataframe (changing to wide format based on certain conditions, renaming and res...
Translating Stata to R yields different results.
英文: Translating Stata to R yields different results 问题 I see your request, and here's the translated...
Subsetting a reactive dataframe in R shiny based on TRUE/FALSE values in one column.
英文: Subsetting a reactive dataframe in R shiny based on TRUE/FALSE values in one column 问题 我有一个可编辑且可...
基于另一列中用户输入的值,在列中反应性地进行计算。
英文: Reactively doing calculations in columns, based on the values of user input in another column 问题...
如何同时改变多个因素的水平
英文: How to change the levels of multiple factors at once 问题 I have a data frame with multiple factor...
43