Category "r"

Shiny app file upload is substantially slower on different machines

I have a shiny application that takes a file upload, calls a script that processes the uploaded file, and writes 4 csvs as output. The app works but as the titl

Trying to resolve Java issue when running Tabulizer in R

I am trying to extract tables from pdfs in R using tabulizer, and keep getting this error when I use extract_tables. Error in .jcall("RJavaTools", "Ljava/lang/O

How to run AIC on anova output from different models

This is my small subset of data on which anova is used. dput(c) structure(list(Mouse.ID = c("DO.1307", "DO.1309", "DO.1311", "DO.1312", "DO.1316", "DO.1318", "

how to convert lmd file to csv? [Flow Cytometry data]

lmd file extension is often used for generating flow cytometry data. But this couldn't be directly used for processing either in R or Python. Is there a way to

R 4.2.0 doesn't start in RStudio (Windows 11)

R 4.2.0 does not start in RStudio. Attached is the screenshot. It says, "The R session process exited with code - 1073740791" R 4.2.0 starts normally outside RS

Is the R function for dividing dual y(mutiple) in time-series graph?

I'm trying to plot graph that dual y according to concentration(ppm, temperature etc.) Reference data is here. Using this data, i want to make graph below. In

renaming a 7zip extracted folder error Access i denied R

I extracted a TxtinOut named folder using the following cmd in R shell('7z x D:/Region02/test.7z -oD:/Region02 -r -y') I want to rename this folder TxtinOut t

How to output bootstrap results to LaTeX in R

library(boot) boot_function <- function(data, indices, formula){ d <- data[indices, ] obj <- lm(formula, d) coefs <- summary(obj)$coefficient

Using "raw" source data in MixSIAR package and also grouping by random factor

I'm using the MixSIAR package in R to estimation proportional water source use (groundwater versus soil moisture) by different tree species based on stable oxyg

How to do a simulation of a hypothesis test (using the Wald test) and report the Monte Carlo standard error of the power?

I am reading https://cran.r-project.org/web/packages/rsimsum/vignettes/A-introduction.html and trying to do a simulation of a hypothesis test (using the Wald te

Extracting year from a column that contains dates in m/d/yyyy format

I have a dataset called verts imported from Excel with a column called Date that contains dates in this format: m/d/yyyy. I'm trying to extract the year from th

Optimal Full Matching

I've been learning to do Optimal Full Matching. I was wondering how the treatment column is created. Is there a way to identify which ones are in the treatment

R - Derivatives of the inverse of the regularized incomplete beta function w.r.t. shape parameters [closed]

The regularized incomplete beta function I(x,a,b) is the CDF for a random variable distributed Beta(a,b). I have a problem that requires compu

Error in install.packages : package ‘RGtk2’ not installed because it is not built for UCRT

I tried to install rattle and RGtk2. I used install.packages("https://cran.microsoft.com/snapshot/2021-12-15/bin/windows/contrib/4.1/RGtk2_2.20.36.2.zip", repos

Problem viewing a pdf file in a shiny app

To view a pdf file and my shiny app, I use the following code on the server side, which everyone recommends: output$pdf_info_exper <- renderUI({ se

Running a MANOVA for habitat selection with missing data in R

I am currently preparing data to conduct a second order and third order habitat selection analysis. For the second-order (use/available), I am looking at the me

R Dataframe Filter Values

I have a dataframe looks like below: Place Time1 Time2 Time3 Time4 Time5 Time6 Time7 Time8 Time9 ... CA 0.2 0.3 0.1 0.

Which version of Java do I need for this

I'm trying to use R and the R package rjdbc to connect to an Oracle database. Unfortunately, due to my company's strict IT department, every step of the proces

getting this error Error: Must request at least one colour from a hue palette

enter image description hereIm trying to stack the above given formula to use on my code, but i keep getting this error Error: Must request at least one colour

Code acting differently inside of a function in R

i've got this set of code here in R that seperates a dataframe containing tweets by their day posted. I'm finding a weird interaction where, if i was to run the