I need to make a report with a table where a column will have a background and font colors depending on each row value. I have success using formatter or color_
I want to show table which can display n number of top records and n number of bottom records if the table is very long. df <- nycflights13::flights funct &
I have a large data set with thousands of columns. The column names include various unwanted characters as follows: col1_3x_xxx col2_3y_xyz col3_3z_zyx I wou
I have two questions for this graph I did: The first, is how do I decrease the graph size?, I have tried with coord_fixed: ggplot(x, aes(fill=is_pass, y=pe
I want to add at-risk table and 95% confidence intervals to adjusted survival curves. Something like survival curves below (Link). I saw some relevant code here
I am trying to recursively split my data using a stump tree based on the lmtree function from the partykitlibrary. The idea is the following: [1] for each varia
I am trying to calculate Cronbach alpha for an index of 5 different survey question. They are scaled identically, 0-10. I have created a matrix with the variabl
My shiny app generates a number of useful graphs. I would like to allow the user to download the graphs in various formats. I have done this before for a single
I am taking the plunge into Bayesian analysis for some new projects. I have some yes/no data, and three fixed effects and for the time being, I'm simply taking
I want to replace solve() by ginv() in the mahanalobis function. Is there any way to force any functions in R to use ginv() instead of solve()?
I'm trying to make a formula and I got the error: $ operator not defined for this S4 class with R. First of all, what is a S4 class? What am I doing wrong
What is the difference between double-precision data type and numeric data type in R programming?
I am trying to fit a GARCH model with external regressors. My external regressors are composed of production data and a dummy that covers a certain period (07-2
Here is a link to my data. I use the following code: #read in data data = read.csv("ggplot_data.csv") #order by group then year data = arrange(data, group, y
I am writing codes to export database from R into Excel, I have been trying others codes including: write.table(ALBERTA1, "D:/ALBERTA1.txt", sep="\t") write.cs
I am missing something crucial here and can't see it. Why does min and max not work to set the axis limits? mtcars %>% select(mpg, cyl, disp, wt) %>
I am running a logistic regression in R and extracting the predicted probabilities for a test data of about 15,000 rows using predict(modelglm, test_data, type
I have the following dataset date region Nr_individuals Povertydecile 01-01-2019 1 80 2 01-01-2019
I am working in RStudio for a course, and I want to write up my reports with R markdown. I would like to display certain console output in the pdf that will be
Before I get into the problem, I want to acknowledge that I have seen that there is a previous question that has been answered, and it gave me an idea for a wor