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

Image may be NSFW.
Clik here to view.

R Highcharter: Changing xAxis Type from datetime to category

I want to change the x-axis type from datetime to category. For example: Primary Chart would be a line chart by group and drilldown chart would be a column chart.There is a solution given in Highcharts...

View Article


R Shiny DT::renderDataTable ...how to customize title in downloaded table

I am using following code for datatable...output$table <- DT::renderDataTable({ datatable(data = filtered_data3(), extensions = 'Buttons', options = list(pageLength = 50, dom = 'Bfrtip', buttons =...

View Article


R Caret sample from different data sources in each iteration

I'm wondering if there's a way to sample from different data sources at each iteration of training using caret?I have an imbalanced problem with X true positives, Y true negatives, and Z unknown...

View Article

kernlab::SVM::Understanding Output

I have been able to successfully test my model in KSVM for accuracy, but I'm not sure how to understand what is actually meant by this output. I tested this using my data also using C=100 and the...

View Article

Image may be NSFW.
Clik here to view.

subset a data frame using unique rows in R [duplicate]

I have a table from which I require a sub-table that has unique values of column A and the maximum value of that particular A value from column B.Example, I have the df: How do I get the output like...

View Article


creating a new column based on dynamically changing threshold conditions Shiny

I'm trying to create a shiny app where the user selects a variable from a drop down box, e.g. dose or supp in the toothgrowth dataset, then a slider from 1 to 100 for each unique element in the...

View Article

Reversing the QR reparamaterization in mgcv

I am working with cubic cyclic splines in the mgcv package. I understand that the model matrix for mgcv includes the intercept and has been reparamaterized using QR decomposition + eigen value...

View Article

Is it possible to take information from the title of a file?

I have this big script with some plot titles that I would just change like the date and time depending on the data I'm working with read.csv. I am already using paste("title",variable,"title") on the...

View Article


Need help to understand ctree plot warnings()

First time asking a question. I am relatively new to using R. Using it on a project for the Party package (cforest, ctree) which has no implementation in Python. I receive no warnings in my code until...

View Article


how to install multiple R versions on MacOS Catalina (version 10.15.2)

Before upgrading my MacBook Pro (early 2015) to macOS catalina 10.15.2, I can install multiple versions of R by first running some commands like this:sudo pkgutil --forget...

View Article

Trying to install easyGgplot2 in R

I am trying to install the easyGgplot2 packages in R 3.5.2install.packages("devtools") library(devtools) install_github("kassambara/easyGgplot2") The last command leads to the following error:package...

View Article

Issue in creating contingency table in R

I am using ISLR package for my statistics practice. I am using OJ dataset. I am trying to create a contingency table for Purchase column and specialPrice columns for weach of the population.I am trying...

View Article

Extract a set of variables from the list

i working in time series data, i convert the data into functional data. I predict the result for one year in a list, know i want to extract the set of variables X1 to X23 and the first column of each...

View Article


R cleaning data - amatch to merge close matches from 2 separate data frames

I'm having tough time figuring out the amatch function in R. 2 data frames, respondent (with user input) and census. I have already normalized and merged user input with perfect matches from the...

View Article

Replace values in a data.table based on row values in another table

I have two data.tables:left_table <- data.table(a = c(1,2,3,4), b = c(4,5,6,7), c = c(8,9,10,11)) right_table <- data.table(record = sample(LETTERS, 9)) I would like to replace the numeric...

View Article


parLapply - How to solve error "Could not find function "bindToEnv""?

I want to use parLapply and I am setting up my code like it is introduced here: http://www.win-vector.com/blog/2016/01/parallel-computing-in-r/The last few times it worked well. However, with my...

View Article

Insert specific unicode symbols inside values of data.frame variable

In my data.frame I would like to add two variables, "A" and "B", whose values contain respectively an n with the i subscript and an n with the s subscript. As I have understood so far, it's not...

View Article


How to perform a check on a permutation "on-the-fly" without storing the...

Assume we have the following permutations of the letters, "a", "b", and "c":library(combinat) do.call(rbind, permn(letters[1:3])) # [,1] [,2] [,3] # [1,] "a""b""c" # [2,] "a""c""b" # [3,] "c""a""b" #...

View Article

Adjusted mean for each row in r

Aiming to reduce the impact of outliers in calculating mean of each row, I want to develop a ruled based mean function. In the below df for example: 2 3 4 5 3 4 5 6 80 3 3 4 5 2 4 5 5 2 4 4 56 3 2 33 4...

View Article

Cel shading/alpha shape in current visualization

I am playing around with rgl and I have created a 3D rendering of the mouse brain, in which structures can be isolated and coloured separately. The original data is a 3D array containing evenly spaced...

View Article
Browsing all 206180 articles
Browse latest View live


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