Questions tagged [r]
R is a free, open-source programming language & software environment for statistical computing, bioinformatics, visualization & general computing. Please use minimal reproducible examples others can run using copy & paste. Show desired output entirely. Use dput() for data & specify all non-base packages with library(). Don't embed pictures for data or code, use indented code blocks instead. For statistics questions, use https://stats.stackexchange.com.
508,167
questions
0
votes
0
answers
7
views
How to obtain standardized residuals for clustered data in lavaan?
I am facing a problem concerning the output of standardized residuals for a fitted lavaan (sem)-object. As far as I do not include “cluster = ” in the fitting function, I can easily obtain the ...
0
votes
0
answers
4
views
R: running a mirai_cluster via parallelly::makeClusterPSOCK
my goal is to perform some heavy computation in R on a cluster of several Linux hosts, using docker containers.
Within R I want to use foreach.
To do this, I believe the best approach is with the ...
0
votes
0
answers
9
views
compiling errors for R 4.4.1 on alma linux 9.4
I am compiling R 4.4.1 from source on alma linux 9.4 (docker container)
./configure --prefix ${installdir} \
--enable-year2038 --with-cairo --with-x --with-libpng --with-jpeglib --with-libtiff \
...
0
votes
0
answers
17
views
Bipartite graph tracking individuals that change rank on R
I have a set of 150 samples, and several measurements have been taken from each of them.
By ranking the samples according to the different parameters I notice that the individual positions are not ...
0
votes
1
answer
20
views
dplyr: count unique values [duplicate]
I have a data:
df <- data.frame(strain = 1:6, sample = c("a24", "a24", "a24", "a26", "a26", "a27"), region = c(rep("ny", 3), ...
0
votes
4
answers
36
views
Error when using bind_rows where one data frame has a column of type <hash>
I want to bind rows from two different data frames where one data frame contains a column of hash values whereas the second data frame doesn't contain this column.
library(tidyverse)
library(openssl)
...
0
votes
0
answers
11
views
Addpoly function adds 95%CIs in text despite specifying 90% using the level argument
I've created a forest plot with subgroups based on an rma.mv object in metafor. We are reporting 90% CI's which appear correctly next to each row of individual effect size estimates when using the ...
0
votes
0
answers
17
views
Unable to upload Excel File without updated version of Rcpp
I am unable to load my excel file on R as it gives me the error below:
"Preparing data import requires an updated version of the Rcpp package. Do you want to install this package now?"
When ...
2
votes
4
answers
68
views
Create Vector from One-to-Many Dataframe in R
I have a dataframe with a one-to-many relationship where the one in the relationship are the column names and the many in the relationship are entries in the first column. I would like to create a ...
0
votes
0
answers
9
views
Several packages not installed in RShiny with Docker
I create a Dockerfile:
# Base image https://hub.docker.com/u/rocker/
FROM rocker/shiny:latest
# system libraries of general use
## install debian packages
RUN apt-get update -qq && apt-get -y ...
0
votes
0
answers
22
views
Keep getting error running this script for stock screening and analysis
The script is meant to extract list of stocks symbols and its corresponding data for analysis but i keep getting error when i get to the map section of the code. The script is given below:
{
...
0
votes
0
answers
15
views
'Not a matrix' error in ate() function in the 'riskRegression' package [closed]
I'm attempting to estimate the average treatment effect of a baseline treatment on a survival outcome by fitting a doubly robust estimator using the ate() function in the package riskRegression. ...
0
votes
0
answers
13
views
Put the progress bar in the center and change the size of the message box in R Shiny
I am writng a R shiny web application. I am looking for a way to put the progress bar in the center of the webpage and adjust the size the of the bar. The function I used is "withProgress", ...
-1
votes
0
answers
37
views
I wanted to assign a value to two objects( a<- 5, b<- 6). I tried to add then (5+6) and it said that object (a) is not found [closed]
a <- 5
b <- 6
a + b
it should say 11, but in my console it says object (a) is not found. Do not know how to correct the problem. Any hekp would be great. Thank you
a <- 5
b <- 6
a + b. ...
0
votes
0
answers
28
views
I dont see window R [closed]
for some reason I only see the console after installing R, can I configure this somehow so as not to call up other windows with commands
nothig?i dont know how its change,
After installing 4 4 1, and ...