英文: How to save multiple steps in map function 问题 我正在尝试创建多个样本,在每个样本上拟合模型并打印结果。 dat <- data.frame(...
使用 stringr 删除两个或更多连续的字符
英文: Remove two or more consecutive characters using stringr 问题 我试图删除脚本中任何具有2个或更多连续ticks的时间。我从这里知道可以使...
R Shiny Leaflet显示重叠标记/多边形的数量?
英文: R Shiny Leaflet Show number of overlapping markers / polygons? 问题 以下是您要翻译的内容: 我正在处理一大批位置数据,发现很多位...
Finding mean of variable across each month/year 在每个月/年中查找变量的均值
英文: Finding mean of variable across each month/year 问题 我有一个类似于这样的数据集: > dput(df) structure(li...
将绘制的线转换为模型对象
英文: Converting a plotted line into a model object 问题 假设我有一系列点,我想在这些点之间绘制直线: x <- c(0, 2, 4, 7, 12...
将数据框变量转换为因子时指定级别。
英文: Specify levels when `mutate`-ing dataframe variables to factors 问题 让我们假设我有名为 data 的以下 tibble 数据框...
如何构建一个函数,根据变量来构建直方图或柱状图
英文: How to construct a function that will construct a histogram or a bar chart depending the variabl...
在Excel列中字符串的出现次数 – R
英文: R - Number of occurrences of a string in a column of excel 问题 I'm using the stringr library to c...
对’apply’的使用产生了误解
英文: Misunderstanding the use of 'apply' 问题 我有一个函数: myFun <- function(x, y) { } 它的目的是处理数据框...
如何在R中将值从xx毫米更改为仅为xx?
英文: How do I change values from xx mm to just xx in R? 问题 I'm working with a dataset about weather w...
298