Skip to main content
Advice
0 votes
0 replies
19 views

I am performing a redundancy analysis using rms::redun() in R. My model includes an interaction between a binary treatment variable and a restricted cubic spline of a continuous variable: treatment * ...
Kavalali's user avatar
  • 101
0 votes
1 answer
66 views

I am trying to perform text analysis on large character strings that include multiple different speakers. I need to create a dataframe of 2 columns, speaker and turn, which have the person speaking ...
flâneur's user avatar
  • 353
-3 votes
0 answers
43 views

I am trying to install the sf package in R on Debian 11 Bullseye, but I have been unable to get a working installation after several attempts. System information Debian Bullseye R: 4.5.2 No sudo ...
Jack's user avatar
  • 29
0 votes
0 answers
42 views

I'm trying to plot multiple time series in one figure. How can i do so? This is the code i used to plot the first one: library(ggplot2) library(ggfortify) data1 <- read.csv("data1.csv") ...
fever's user avatar
  • 1
1 vote
0 answers
69 views

I'm working in R and have a dataframe mtcars with cars having a column wt (weight of the cars). I'm trying to calculate skewness of weights. The following is the exercise as shown in the book. The 1st ...
Baldomero123's user avatar
2 votes
2 answers
92 views

My dataframe is called detections. One column is OBSERVER. That column contains the initials of 32 different people. Some of those observers are responsible for 1000+ observations (i.e. 1000+ lines ...
chill's user avatar
  • 143
2 votes
1 answer
62 views

As Stefan suggested here, splitting the legend into multiple rows on a nested facet_wrap using legendry::guide_legend_group works well. However, the colors are inconsistent (e.g., see the left graph ...
denis's user avatar
  • 1,110
2 votes
1 answer
48 views

I'm working with the Insurance data set. Created a summary of the Insurance data set, where the charges are sorted from highest to lowest, and labeled as "Highest_five_percent" and "...
Russ Conte's user avatar
4 votes
4 answers
128 views

I'm trying to figure out how to change values in a column (Age), based on the values of two separate columns (Species and Length). I have a dataset of fish lengths, with all of them designated either &...
Ray's user avatar
  • 85
3 votes
1 answer
95 views

I have a program saved in a .R file. One of the challenges I have with it is that I have a statement that is supposed to read data from the keyboard which is not working. The statement is num_itr <-...
Kelechi Nwosu's user avatar
1 vote
1 answer
92 views

I'm launching a study that involves disseminating a survey in a bunch of different languages (English, Spanish, Arabic, etc.). In advance of launching the survey, I was looking at how the data will ...
gavinacw's user avatar
0 votes
0 answers
85 views

I am generating a PDF from R Markdown using flextable. When I vertically merge cells, the borders of the merged cells appear correctly in the preview, but they do not appear correctly in the rendered ...
Homer Jay Simpson's user avatar
0 votes
3 answers
190 views

I have some old data files with a large number of writing errors. An example is attached below, where some of the numbers in the .dat file are 9 digits or characters long rather than the expected 8. ...
user8229029's user avatar
  • 1,232
5 votes
1 answer
263 views

The dataframe df0 below includes the following variables: site: 3 remote partner laboratories (fixed number), analyte: biomarkers measured at one or more of these sites (3 analytes in this example ...
denis's user avatar
  • 1,110
Tooling
0 votes
7 replies
126 views

I want to visualize a 3D data structure in a 3D table or spreadsheet in R. Much like a 2D spreadsheet, for example in Excel, but with three-dimensional cells. Here is a rough sketch of what I want to ...
Ben's user avatar
  • 819

15 30 50 per page
1
2 3 4 5
34061