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

Unknown SSL protocol error in connection to...

calling request (Request/Response, not Batch execution, Azure Machine Learning Web service) fails. Error is in topic, I have updated RCurl-library to solve problem, but it wasn't.Request R-code is...

View Article


Adding Significant Letters On Kaplan Meier Survival Plot

I have created a kaplan meier survival plot with the following code below:data <- read.table("https://pastebin.com/raw/jEsGrNti", header = T) # sample data.frame library(survival) library(survminer)...

View Article


Stata collapse (sum) in R

I'm trying to translate the stata collapse varlist (sum)into R. The problem seems to be with the (sum), because I'm getting some different values than the original output in Stata. The only good news...

View Article

increase the maximum possible payload size for deployr server (hosted via...

I have a service hosted by deployr. I am getting a connection reset by peer error. I know my payload size is above 2MB - the default limit as mentioned by Microsoft...

View Article

How to compute land cover values from another raster?

I have two rasters:raster1 class : RasterLayer dimensions : 2803, 5303, 14864309 (nrow, ncol, ncell) resolution : 0.008333333, 0.008333333 (x, y) extent : 60.85, 105.0417, 15.95833, 39.31667 (xmin,...

View Article


Match and replace string using REGEX in Sqlite?

I have a table called personal_websessions that contains data in the following format: id_no | website_link 1 | google.com 2 | stackoverflow.com 3 | msn.com You can create this table using the...

View Article

Dealing with deeply nested lists sourced from JSON

everyone!Have a problem with deeply nested list, sourced from JSON... so, provide an original data → https://dropmefiles.com/luuhx What do I need? A tibble with:"id" form "data"...

View Article

Can not install AzureStor on Azure DSVM as it will not detect Rtools

I am trying to install AzureStor in order to access Azure storage blobs from an Azure DSVM running RStudio. AzureStor needs Rtools, however I have not been able to install a working version of Rtools...

View Article


Image may be NSFW.
Clik here to view.

Aligning x axis and adding axis labels on a multigraph figure in R

I have a matrix of experimental results from multiple parameters. Each parameter has been tested across different values and the number of values tested is different for each parameter. That is, not an...

View Article


Using position in one list to read in file from another list in R

I have a vector of city names called cities:> cities [1] 'amsterdam''atlanta''bangalore' [4] 'bogota''boston''brisbane' [7] 'brussels''cairo''cape'I have two folders where the same cities are...

View Article

Putting labels for only the first and the last value of data in R and ggplot2

I would like to know how I can put labels on the first and last value of my data without having a fixed data set since every month, this data gets renewed and i want to have a general code for the...

View Article

R package psych two means in one variable after combining

I'm currently analysing data for a student project. During the analysis, I combined two variables into one with cbind():interpas$GA02_01 <- cbind(interpas$LP02_01, interpas$ST02_01) The two...

View Article

Using ggplotly on a ggplot2 graph does not work with boxplot variable width...

When I use ggplotly on a ggplot2 graph, some features of ggplot2 are reset.Code example:db <- iris # Changing the N in one of the categories for the example: db$Sepal.Length[1:40] <- NA p <-...

View Article


How to use apply() to normalize datamatrix with respect to specific columns

I am trying to normalize the values in a matrix with respect to my controls (R247, R235, R241). My coldata is: Condition Tank R235 Control T6 R236 LowExposure T6 R239 HighExposure T6 R241 Control T8...

View Article

Problem reading xlsx file downloaded by R

I'm trying to read the following file in R https://www.ssga.com/us/en/individual/etfs/library-content/products/fund-data/etfs/us/holdings-daily-us-en-xop.xlsxIt works when I paste the url directly in a...

View Article


Image may be NSFW.
Clik here to view.

ggplot2 - remove top border

I'm want to remove only the top part of my graph. I found some directions here and here. However, they remove all the borders or the top and left. I know that I should probably use the argument...

View Article

R function to identify and extract profiles from oceanographic data?

I have some oceanographic data (time, depth, plankton counts, salinity, temperature, etc.) from the deployment of oceanographic equipment. The deployment consisted of multiple profiles of the water...

View Article


How to reduce factor levels depending on other attribute?

I have a dataframe of two columns id and result, and I want to assign factor levels to result depending on id. So that for id "1", result c("a","b","c","d") will have factor levels 1,2,3,4. For id "2",...

View Article

Conditional calculation based on other columns lagged values

Newbie: I have a dataset where I want to calculate the y-o-y growth of sales of a company. The dataset contains approx. 1000 companies with each different number of years listed on a public stock...

View Article

fast R lookup table

Similar questions were asked before, but without clear generic answers. (And Joseph Adler's experiments are no longer on the web, and his book just says "write an S4 class.")Assume a large lookup table...

View Article
Browsing all 201839 articles
Browse latest View live


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