英文: Split and aggregating results without a loop 问题 以下是翻译的代码部分: I have a dataframe where I would lik...
如何在Shiny中的反应性上下文之外使用input$id?
英文: How to use input$id outside of reactive context in Shiny? 问题 I need to use a Shiny input$id outs...
将某些列中的数值除以一列的值,并替换数据表中的内容。
英文: Divide values in some columns by the value of a column and replace in data table 问题 使用R,我想要将数据表中...
比较一个值是否位于另外两个值之间
英文: Comparing if one value fits between other 2 问题 我有3个值要比较,分别是a、b和c。我需要创建一个循环,如果b落在a和c之间,就返回1。然而,它们...
如何将宽格式数据重塑为长格式?
英文: How to reshape wide format data to long format? 问题 我有一个宽格式的数据集,其中包含年份变量(yr1、yr2、yr3)和持续时间变量(yr1_...
无法在R的reticulate中加载pandas,因为缺少GLIBCXX_3.4.29。
英文: Unable to load pandas in R reticulate due to missing GLIBCXX_3.4.29 问题 我正在尝试使用R的reticulate包在R中加载...
使用模糊字符串匹配(stringdist_join())在文本字符串上连接数据框。
英文: Joining dataframes on text strings using fuzzy string matching (stringdist_join()) 问题 我正在尝试基于两个变...
使用R查询包中每个唯一资源的API
英文: Querying API for every unique resource in a package using R 问题 我正在编写一个脚本,用于从一个开放数据网站使用CKAN下载包中的所...
读取一个文本文件,根据分隔符将其拆分为多行。
英文: Read a text file with one line and split it to multiple rows based on a delimiter 问题 我想使用“readr”...
修正Gif中的图表位置 – 用动态轴标签播放图表
英文: Fix plot position in a Gif - animate plot with dynamic axis labels 问题 我正在尝试制作一个 GIF(每帧中,我想在 y 轴上...
298