I'm trying to add a combination of a gt table and a number of ggplot images to an email for sending to my team. It's my understanding that to include ...
I'm trying to add a combination of a gt table and a number of ggplot images to an email for sending to my team. It's my understanding that to include ...
I have a dataset like the following one: please just to the special alphabet case, as long as possible. What I would like to do is to create a code ...
I have a table which looks like: Col A Col b a 2,3,4,5 a 3,5,6,7,8 ...
So, the issue that I've got is that I am trying to transform a series of numbers which appear to me in scientific notation, say 1.39+e14, into single ...
I am refactoring the following block of code: As the first step, I would like to use an imperative approach. Therefore I defined a matrix and tried ...
I am looking to generate a longitudinal dataset. I have generated my pat numbers and treatment groups: My timepoints (in days) are: How can I pi ...
I'm generating some data as follows: This gives me a table like: I want to pivot this into longer format, so I have the columns: timepoints_days ...
I got a dataset from a government (Dubai) website and I want to do basic data analysis. But one of the variables is recorded in Arabic language. Is th ...
How do I make graphs like this in R? Lets say I have a dataset like this: and is doing a difference in differences analysis: How can I make a p ...
I have a dataset that is comparing pain scores and am trying to determine the duration of time that the person is in a particular pain range. I initia ...
I have 2 data sets, both include ID columns with the same IDs. I have already removed rows from the first data set. For the second data set, I would l ...
The code to generate sample dataset is as below: The output is Is there anyway to use select and as.numeric at the same time? ...
I have a time series data. I stored the data in txt files under daily subfolders in Monthly folders. Of these .txt files, I removed some of the fil ...
I have a nested list with two data.frames, and I would like to change all variable names and variable categories to uppercase The result I am looki ...
I want to select a row for each group created by variable a. It should be the row with the highest value for variable c, but if variable b is TRUE, th ...
I have column in dataframe which has following structure in the rows. I want to replace all rows with first entry of shifting cycle to shifting cyc ...
I've written a query in R on a large-ish data frame (200k rows, about 50 columns) Small reprex: It's very slow. The group_by() stage (which is imp ...
Having a dataframe like: I want to summarize the whole dataframe in one row that it contains no NAs. It should looke like: It should work also w ...
Suppose for a dataframe df as follows: Out: I want to extract date column and the actual and predicted values of buy and sell prices in a for lo ...
I've got a dataframe like the one below (in the actual dataset the number of rows are a few thousands and I 've got more than 300 variables): which ...