Skip to main content
Advice
0 votes
1 replies
36 views

In R it is generally convenient to use a function like "pretty" when deciding intervals to plot in a graph that are useful and readable to the general audience. In R if you are producing a ...
AdamO's user avatar
  • 5,123
2 votes
0 answers
43 views

Pretty much what the title says. A little more background: guidance I have received from CRAN suggests having packages use rlang::inform(), rlang::abort(), and rlang::warn() to produce output for ...
Alexis's user avatar
  • 882
0 votes
0 answers
20 views

I have a survey for which I calculated post-stratification weights of the form proportion in the population/proportion in the sample for cross-categories age, sex and education. I am analysing a ...
kris's user avatar
  • 187
Advice
0 votes
3 replies
69 views

I have two data frames with one ID column (all IDs are in both data frames) and 20 other columns with a value of 0 or 1. I would like to update one data frame by row (or rather ID, since the data ...
AnneA's user avatar
  • 57
3 votes
1 answer
110 views

I am interested in using purrr::pmap() within a function. I am having trouble passing the data-variable names from my function to the anonymous function used witin pmap() library("purrr") ...
RichPatter's user avatar
-3 votes
0 answers
50 views

I want to create chr with name , but failed .Anyone can help on it ? the wished result as wished_char_with_name library(tidyverse) # failed code char_with_name <- diamonds %>% select(cut,...
anderwyang's user avatar
  • 2,541
6 votes
1 answer
83 views

I've done some looking, but can't figure out the syntax for my specific situation. I need to group data like the following: library(tibble) data_example <- tribble( ~drug_name, ~ecoli_median_molar,...
Teagan P's user avatar
1 vote
0 answers
19 views

I'm having issues connecting my local RStudio setup to my company's Databricks databases via sparklyr. When I use sc <- sparklyr::spark_connect(cluster_id = Sys.getenv("DATABRICKS_CLUSTER_ID&...
Margaret's user avatar
  • 6,025
Advice
0 votes
2 replies
43 views

Is it a good idea to use both a smooth and smooths by a nominal factor of the same predictor in the same GAM? Let's assume we want to model encounters as a function of species and space (long, lat). ...
David's user avatar
  • 107
6 votes
4 answers
242 views

I'm looking at genetics punnet squares for two homologous chromosome pairs, which I've modeled in R like this: # Punnet square for two homologous chromosome pairs col_names<-c("AB", "...
Phenomniverse's user avatar
2 votes
0 answers
51 views

I'm struggling with a problem of references not colored as desired for docx output. In the officer package there's a function run_reference. It takes a prop argument that allows setting custom props ...
Jakub Małecki's user avatar
0 votes
0 answers
98 views

I recently installed R 4.5.2 on a fresh install of macOS Tahoe 26.3. When I run .libPaths() only the following library is returned: [1] "/Library/Frameworks/R.framework/Versions/4.5-arm64/...
Stefano's user avatar
  • 1,493
2 votes
1 answer
61 views

I am completing some data analysis at the request of a supervisor on a R script that was completed by someone else. The script used MICE to create an imputed data set and then computed a LMM with a ...
Jacob Sorbello's user avatar
-1 votes
1 answer
133 views

I have this diagram in R: library(DiagrammeR) grn <- '#66BB6A' red <- '#EF5350' nvy <- '#1B3A5C' gry <- '#BBBBBB' lag_diagram <- grViz(paste0(" digraph lag_grid { graph [ ...
stats_noob's user avatar
  • 6,931
4 votes
1 answer
81 views

I’m trying to compute cumulative incidence with epiR::epi.conf() and the estimate doesn't match the simple manual calculation. I have 13 events out of 107 individuals (13 events, 94 non-events). ...
Agustín Nava's user avatar

15 30 50 per page
1
2 3 4 5
34048