Quantcast
Channel: Active questions tagged r - Stack Overflow
Browsing all 205491 articles
Browse latest View live
↧

Italicize and Line Break in y-axis Title R ggplot

I am having issue with \n in my y-axis title. The title is long and would like to use \n newline option to separate it two different lines. How can I use \n using "expression". The code I tried below....

View Article


Image may be NSFW.
Clik here to view.

Trouble Connecting to DB2 Database with R error 1114

I've been trying to connect RStudio to a DB2 database and have been receiving the following error rror: nanodbc/nanodbc.cpp:950: IM003: Specified driver could not be loaded due to system error 1114: A...

View Article


How to change the title of cchart.p function from IQCC package?

I am using cchart.p function of IQCC package to generate p-chart but title appears this "Standardized p-chart (phase II)". I want to change the title, x-label and y-label.Code tried:library(IQCC) #get...

View Article

what is the Beta valuel when simulate a hybrid Geyer model using spatstat, R...

I fit a hybrid geyer model including a hardcore and a geyer saturation components, now I want to simulate the fitted model by rmh() in spatstat, the code is...

View Article

How to create desktop stanalone app fro shiny code

I have written a GUI code in R shiny. Now I want to create a desktop stand alone app (.exe file) for the same. How can I do that.

View Article


Aligning Data frame with missing values

I'm using a data frame with many NA values. While I'm able to create a linear model, I am subsequently unable to line the fitted values of the model up with the original data due to the missing values...

View Article

calculate the growth rate for panel data

data("Grunfeld",package = "AER") library("plm") gr <- subset(Grunfeld, firm %in% c("General Electric","General Motors")) pgr <- plm.data(gr,index = c("firm","year")) row.names firm year invest...

View Article

I have an "Error: failed to load external entity" when I try to run the R code

I got the below R code from online and tried to run, but keep getting an error: Error: failed to load external entity "http://www.baseball-reference.com/teams/ARI/1998-schedule-scores.shtml". Any...

View Article


Error in eval(predvars, data, env) : object 'medv' not found

Please help I am getting this error; Error in eval(predvars, data, env) : object 'medv' not foundMy code# LM set.seed(7) fit.lm <- train(medv~., data=dataset, method="lm", metric=metric,...

View Article


Techinique to predict with more than 3 unique dependent variable

Dataset contains 75000 observations with 5 Independent variables (ordinal values). The dependent variable has 495 unique values(495 categories). Which ML approach would be good to deal with this?

View Article

Compacting Shared Libraries in R package

My package .so file is above 3 MB (up to 10 MB) depending of the compiler and the system. This generates a NOTE with R CMD check in my package for years. My package does not contain so much code so I...

View Article

Image may be NSFW.
Clik here to view.

Why the two mean don't match when computed manually and using stat_summary?

I'm doing a project and analysis on the SO data and wanted to check whether the badges (gold, silver and bronze) would depict significant differences between the top users within those groups i.e. that...

View Article

how can I set a dummy variable in a regression in R

The following is my datay r1 r2 r3 1 0.1 0.2 -0.3 2 0.7 -0.9 0.03 3 -0.93 -0.32 -0.22 1.The first question is how can I get the output like this:y r1 r2 r3 dummy_r1 dummy_r2 dummy_r3 1 0.1 0.2 -0.3 0 0...

View Article


Image may be NSFW.
Clik here to view.

How can I configure the default settings of RStudio?

I launch RStudio in a Docker container and access to it via the browser in the host OS. I prefer the settings Console on Right and Emacs Key Bindings, so usually check these options by hand in GUI. The...

View Article

Monthly Time series data in ggplot2

I want to plot monthly time series with data below and I am getting the Error: Invalid input: date_trans works with objects of class Date only* Any help will be much appreciated.below is my code:...

View Article


in R, leaflet don't reflect the latitude nor longitude?

in an attempt to create map like this one with my data frame and filters I found leaflet doesn't reflect any of the long. or lat. accordingly no pop up to show.dataset& cssthe codelibrary(shiny)...

View Article

turn a list of dataframes into a dataframe

I have made a list of dataframes by querying an SQL database. dput(list_df[1:5]) givesDATAlist_df <- list("NOT FOUND", structure(list(associated_gene = NA, refsnp_id = "rs778387354", allele =...

View Article


Splitting a column into two before and after the first appearance of a...

I have the attached dataframe.DATAstructure(list(associated_gene = c(NA, NA, "A4GALT", NA, NA, "NOT FOUND"), chr_name = c("22", "22", "22", "22", "22", "NOT FOUND" ), chrom_start = c(42693910L,...

View Article

How to add zero to the string using regexp to get a length of 4 (from the...

I have a vector:x<-c("1. Ure.html", "15. Astra basta.html", "16. Mafa of Part 4.html", "16.1 Veka--Cons.pdf") How do i get vector y using regexp? I need add lead zero to string for length 4 from...

View Article

Is there a way in R to group by 'runs'?

Say I have:df<-data.frame(group=c(1, 1, 1, 1, 2, 2, 2, 2), date=c("2000-01-01", "2000-01-02", "2000-01-04", "2000-01-05", "2000-01-09", "2000-01-10", "2000-01-11", "2000-01-13"), want_group=c(1, 1,...

View Article
Browsing all 205491 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>