23 questions from the last 7 days
Advice
0
votes
1
replies
32
views
Obtaining AUC from glmer() after multiple imputation using mice (R)
I'm pretty novice to mixed-effects logistic regression. I am interested in obtaining the AUC value from mixed-effects logistic regression (using the bobyqa optimizer) following multiple imputation. ...
2
votes
2
answers
78
views
How to compare two csv files using a common index file by looping through each data column?
In my setup, I have three files:
index.csv
original.csv
processed.csv
The index file looks like this:
Source column, Source code, Source value
Handedness, Left,1
Handedness, Right,2
Handedness, ...
Advice
1
vote
0
replies
39
views
Where should I store the .Renviron file now that claude code/cowork can look into my project files?
Before the AI expansion, .Renviron file, according to this post, should have been located either in the home folder or in the project's root, depending on the scope.
However, with tools like Claude ...
1
vote
2
answers
71
views
download csv file from OSF
I am trying to download a .csv file from a Public Open Science Framework (OSF) project through my script on GitHub. I do not want to download a local copy.
I've tried using two different options for ...
1
vote
0
answers
45
views
Rescaling y-axis in facets with buffer [duplicate]
This Q&A solves the problem of having free y-scales across facets while always including 0.
However, in the resulting plot, the data sticks to the top of the plot. Is it possible to add some ...
Advice
0
votes
2
replies
28
views
How do I create a custom tooltip where trigger=axis with echarts4r?
I have very little JavaScript experience, so am finding it difficult to understand the guidance on this. I have a bar chart which shows survey data results over multiple years. However, my survey ...
0
votes
0
answers
36
views
Changing order of rectangles in axis in ggalluvial - factor levels not working [duplicate]
I am using ggalluvial to make a plot in RStudio.
I have tried everything, but for the life of me I can not get the last two axis in the correct order. I want axis3 to be ordered "0, 2, 3" ...
1
vote
2
answers
56
views
Plotting principal_curve lines with ggplot2 geom_path and/or geom_line
I have a nonlinear matrix mat1 with 250 rows, and used principal_curve to get crv. It looks normal when using plot(crv), but then when trying to plot this with tidyverse functions it does not produce ...
1
vote
1
answer
75
views
When using ggOceanMaps to plot bathymetry data, the map is plotted upside down
I am trying to create a bathymetry map of the research area I am studying in Alaska.
When I use the suggested ggOceanMaps code, the map is plotted upside down.
My code:
library(ggOceanMaps)
library(...
Tooling
1
vote
0
replies
68
views
Airflow use cases for different repos
I am newbie in Airflow and I use currently task scheduler on remote desktop to automate our tasks but it is based on my credentials and I cannot share with other team members, so I clone all projects ...
0
votes
1
answer
112
views
How to get rid of “vec_is_vector() is defunct” error in mutate() function?
How do I get the mutate function, from the dplyr package, to work when R says I have input problems due to vec_is_vector being defunct?
I’ve recently updated R and noticed that some of my old code no ...
-1
votes
0
answers
63
views
How to calculate variance of columns by avoiding zeroes? [closed]
I have a trait matrix in which column values represent traits (log10 transformed body-mass values). As the body mass is log-transformed, it will have both +ve and -ve values. But any 0s in those ...
1
vote
2
answers
166
views
Difference between dates in SAS doesn't match results
I need to recreate the code from SAS in R but I'm struggling to get the same results. I can get some rows to be the same but at the same time some other rows are different.
Can anyone help with ...
0
votes
1
answer
151
views
Automation to create many variables (with some specific patterns)
I have a script that creates indicator variables when the Temperature exceeds a certain threshold in a specific number of days on a week (for example, 2 or more consecutive days over the 90th ...
3
votes
1
answer
124
views
How to find the API endpoint behind Paribu Fear & Greed Index chart?
I'm working on a personal project that needs the exact Fear & Greed Index values
displayed on Paribu's trend page:
https://www.paribu.com/kripto-trend-analizi
The page shows a chart with 1H/4H/1D/...