1. Announcement:
    Search functionality giving errors
    Dason ‎(Devorador de queso)
    05-07-2017
    Views:
    3,939
+ Post New Thread
Page 1 of 69 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 51 ... LastLast
Threads 1 to 60 of 4087

Forum: R

R programming and usage, R news, R tips and tutorials

  1. Sticky Thread Sticky: Today I Learned: ____

    I thought it might be nice to just have a place to post some happy little things you learned or (re)discovered about R that makes your life nicer and...

    Started by Dason‎, 01-03-2012 11:39 AM
    26 Pages
    1 2 3 ... 26
    • Replies: 388
    • Views: 244,824
    08-25-2017, 07:35 AM Go to last post
  2. Sticky Thread Sticky: What R packages are you aching to see?

    Are there any R packages that don't yet exist that you wish existed? What kinds of things do you wish were easier to do in R? What things do you...

    Started by Dason‎, 11-19-2015 01:38 AM
    • Replies: 2
    • Views: 11,764
    07-20-2017, 10:43 AM Go to last post
  3. Sticky Thread Sticky: R News and Updates

    I'm starting this thread out of frustration for my own oversight. blog.revolutionanalytics.com was having an R webinar today (LINK) that looked...

    Started by trinker‎, 08-24-2011 09:41 AM
    8 Pages
    1 2 3 ... 8
    news
    • Replies: 112
    • Views: 101,318
    04-24-2017, 10:42 AM Go to last post
  4. Sticky Thread Sticky: [R Graphics] Beautiful graphics thread

    Hi Everyone, I thought I might start a thread which showcases the graphics abilities of R. I'll start it off with one I just made. This thread...

    Started by TheEcologist‎, 10-17-2012 05:08 AM
    9 Pages
    1 2 3 ... 9
    • Replies: 120
    • Views: 108,764
    12-13-2016, 05:47 PM Go to last post
  5. Sticky Thread Sticky: Share your functions & code

    I’m starting this thread as a sharing thread. The power of is in building and sharing on one another’s creativity. I’m often amazed at how people...

    Started by trinker‎, 06-25-2011 03:42 PM
    20 Pages
    1 2 3 ... 20
    • Replies: 286
    • Views: 231,210
    09-13-2016, 03:35 PM Go to last post
  6. Sticky Thread Sticky: Info for R users (Links, Manuals, Books, etc.)

    Note: This original post has been modified to make it easier to find the resources in the thread and to compile them into one location. If you want...

    Started by Tart‎, 08-06-2008 09:22 AM
    7 Pages
    1 2 3 ... 7
    information
    • Replies: 100
    • Views: 115,560
    04-14-2016, 01:02 PM Go to last post
  7. Sticky Thread Sticky: How to use Code tags

    Using Code Tags This thread contains a brief introduction to using code tags and presenting code in general on this forum. I'm biased toward R so...

    Started by Dason‎, 10-17-2012 07:20 PM
    • Replies: 0
    • Views: 24,887
    10-17-2012, 07:20 PM Go to last post
  1. Empty cell when importing csv file

    Dear- We are going to import a csv format file to R system. For example, a <- read.csv(file="c:\\order4.csv", header=TRUE, sep=","); ...

    Started by jk90029‎, 09-20-2017 08:13 PM
    • Replies: 2
    • Views: 167
    Yesterday, 10:58 PM Go to last post
  2. how do I create a Line chart from a data frame?

    i'm quite the newbie with R and i want to create a line chart starting from this dataset: where every line points out the number of the smell...

    Started by Serphentelm‎, 09-20-2017 08:53 AM
    • Replies: 2
    • Views: 129
    09-20-2017, 11:07 AM Go to last post
  3. Help on nested for loop please!!!

    Dear R experts, I am struggling with my raw data. I am trying to filter data by a nested loop, it has been running for days. I think my loop...

    Started by tobi‎, 09-06-2017 07:13 PM
    • Replies: 4
    • Views: 276
    09-20-2017, 09:14 AM Go to last post
  4. How to add class labels for each value in a dataframe according to class breaks?

    Hello, I have a dataframe whose column $value stores some values I want to break into (say) three classes using the Jenks natural breaks method. ...

    Started by gianmarco‎, 09-14-2017 11:15 AM
    • Replies: 5
    • Views: 300
    09-15-2017, 02:23 AM Go to last post
  5. Moving rows

    I have the following dataset: ID HIV Status Date 1 FALSE 22-12-99 1 TRUE 22-12-99 2 FALSE 22-12-99 2 TRUE 22-12-99 2 TRUE 21-12-99...

    Started by helpwithstats‎, 09-08-2017 11:52 AM
    • Replies: 3
    • Views: 320
    09-12-2017, 09:36 AM Go to last post
  6. cannot make R leave enough room for labels in silhouette plot ('cluster' package)

    Dear All, I have problems making R plot the objects' labels in the 'silhouette' plot (out from the 'cluster' package). See the attached image....

    Started by gianmarco‎, 09-09-2017 04:06 AM
    • Replies: 2
    • Views: 212
    09-09-2017, 10:36 AM Go to last post
  7. [SOLVED] Overlay function on a scatterplot in ggplot2

    So I've been trying to figure this one out for a while and I haven't been able to. I have this nice scatterplot x1 <- rnorm(200, 3, ...

    Started by spunky‎, 09-07-2017 02:09 PM
    • Replies: 4
    • Views: 194
    09-07-2017, 03:44 PM Go to last post
  8. GGPLOT2 - Sub Groups

    Hi, I'm trying to create a stratified forest plot in ggplot2. In our analyses, we prepared a logistic regression model for each strata (Immigrants...

    Started by jamesmartinn‎, 07-14-2017 10:43 AM
    • Replies: 1
    • Views: 392
    09-06-2017, 02:00 PM Go to last post
  9. is it possible to build customized (nice-looking) tables in R?

    Hello All, I am wondering whether is it possible in R to produce nicely formatted tables, whose cell values (and headers) are worked out from pieces...

    Started by gianmarco‎, 09-06-2017 03:14 AM
    • Replies: 0
    • Views: 105
    09-06-2017, 03:14 AM Go to last post
  10. Mixed factor and numeric model

    Hi, I have a predictive model with three predictive variables: two factors, Status and StatusNew; and a numeric one, Weekband. I'm trying to use...

    Started by SpoodleBeast‎, 09-05-2017 01:48 AM
    • Replies: 0
    • Views: 136
    09-05-2017, 01:48 AM Go to last post
  11. Robust Factorial Repeated Measures Anova in R with the WRS2 package

    Hello! I'm trying to run a somewhat esoteric statistical test, and I'm having trouble. The experiment is a repeated-measures design, and the...

    Started by Gabriel Diaz‎, 09-01-2017 12:34 PM
    • Replies: 0
    • Views: 232
    09-01-2017, 12:34 PM Go to last post
  12. R ggplot NO alphabatize

    I am plotting box plots for several variables using ggplot. However, ggplot is alphabetizing the variables and I want them to present as the order I...

    Started by leonedelman‎, 08-23-2017 01:43 PM
    ggplot2
    • Replies: 4
    • Views: 360
    08-28-2017, 08:28 PM Go to last post
  13. Question plotting the effect of treatment on plants

    Hello, I have some plant data, which contains several plant groups. Within the plant groups there are different plant sizes (devided in groups)....

    Started by lotw‎, 08-28-2017 09:35 AM
    • Replies: 1
    • Views: 201
    08-28-2017, 07:44 PM Go to last post
  14. calculate (column-wise) how many entries are larger than the first one

    Hello, I have the following small dataframe (11 rows, 3 columns). What I would like to accomplish is to get a new dataframe (1 row, 3 columns) in...

    Started by gianmarco‎, 08-25-2017 01:24 AM
    • Replies: 2
    • Views: 197
    08-28-2017, 07:38 PM Go to last post
  15. [SOLVED] geom_boxplot

    Folks, I am seriously getting annoyed today. I am plotting calcium using geom_boxplot. The x-axis is as series of sites and looking at RC1, there...

    Started by bugman‎, 08-23-2017 11:51 PM
    • Replies: 1
    • Views: 178
    08-23-2017, 11:58 PM Go to last post
  16. R cannot find an object within a loop

    My R programming skill is quite basic I know, so be gentle! I am having difficulties in understanding what I am doing wrong here. Upon running the...

    Started by gianmarco‎, 08-22-2017 11:08 AM
    • Replies: 8
    • Views: 298
    08-23-2017, 09:52 AM Go to last post
  17. Linear mixed model subject level

    Dear All I am new to R and I am implementing a linear mixed model for a variance shift outlier model. I am wondering if someone in the group can...

    Started by isingini‎, 07-31-2017 12:53 PM
    • Replies: 1
    • Views: 392
    08-19-2017, 01:34 PM Go to last post
  18. cannot draw a histogram on R

    Im trying to draw a histogram with the code below. stat <- read.csv("C://Desktop//lung cancer.csv",header=T) x = (2000:2013) y = (0:12000)...

    Started by polly123‎, 08-18-2017 09:13 PM
    r histogram
    • Replies: 2
    • Views: 424
    08-19-2017, 03:06 AM Go to last post
  19. Data frame of results

    Hi all Suppose I have 10 different models as such: fit1.glm <- glm(admit ~ gre , data = dat, family = "binomial") fit2.glm <- glm(admit ~ gpa,...

    Started by leonedelman‎, 08-18-2017 10:07 AM
    dataframe, glm, odds ratio
    • Replies: 1
    • Views: 229
    08-18-2017, 10:21 AM Go to last post
  20. Odds ratio plot on log scale

    Greetings, I have had difficulties plotting results from GLM logit models to show up as odds ratios on a log scale. Ultimately I want to obtain...

    Started by leonedelman‎, 08-17-2017 03:17 PM
    logit, odds ratio, plot
    • Replies: 3
    • Views: 289
    08-18-2017, 09:25 AM Go to last post
  21. Shaded confidence bands for parametric survival w/ survreg

    Hi all, I'd like to plot shaded confidence bands for a parametric survival curve fitted with survreg. It's easy to plot dashed confidence...

    Started by azaleah_‎, 08-15-2017 07:23 PM
    shaded confidence bands, survival function, survreg
    • Replies: 0
    • Views: 160
    08-15-2017, 07:23 PM Go to last post
  22. NBSVM in R

    Hi, I need some guid in write NBSVM cod in R. pleas help me

    Started by EhsanZereshki‎, 08-10-2017 08:24 AM
    2 Pages
    1 2
    • Replies: 15
    • Views: 704
    08-11-2017, 02:09 AM Go to last post
  23. Scoring Dataset (easy question)

    I have a dataset "Xs" and also some model coefficients. I would like to score the dataset using the coefficients. The dataset has 7 items and there...

    Started by hlsmith‎, 08-09-2017 08:52 AM
    • Replies: 3
    • Views: 237
    08-10-2017, 11:29 AM Go to last post
  24. LASSO (binomial) p-value and confidence intervals (selectiveInference) error

    I was just trying to quickly check out the "selectiveInference" package to slap confidence intervals on my beta coefficients from a glmnet (LASSO:...

    Started by hlsmith‎, 07-08-2017 10:06 PM
    • Replies: 5
    • Views: 477
    08-07-2017, 07:26 PM Go to last post
  25. Computing skewness and other distributional Characteristics when pdf is known

    Hi everybody I want to compute skewnesss and other distributional characteristics of a gamma distribution when its shape and scale parameters are...

    Started by deantop‎, 08-06-2017 12:35 AM
    gamma distribution
    • Replies: 1
    • Views: 217
    08-06-2017, 06:30 AM Go to last post
  26. Adjust for overdispersion in glm family = binomial (logit) model

    I have an overdispersion problem in my model.. I have the following data: y= succes/fail (%) x= Var1 : Temperature data...

    Started by lotw‎, 08-04-2017 04:26 AM
    binomial glm, glm, overdispersion, sigma
    • Replies: 1
    • Views: 238
    08-04-2017, 09:36 AM Go to last post
  27. How to take out data set from r-package?

    It is known that r-packages can contain data set. How (in the general case) take out this data set (to open in Excel)? If possible, please explain...

    Started by Ted Beginner‎, 07-30-2017 05:13 AM
    data set, r-package
    • Replies: 1
    • Views: 365
    07-30-2017, 06:17 PM Go to last post
  28. Caret package SAF/GAF error; "replacement has 1 row, data has 0"

    In R, whenever I try using the safs/gafs interface via. caret I keep running into this specific error: Error in { : task 1 failed - "replacement...

    Started by aranglol‎, 07-27-2017 08:09 PM
    caret, feature selection, genetic algorithm, random forest
    • Replies: 0
    • Views: 113
    07-27-2017, 08:09 PM Go to last post
  29. monitoring of autocorrelated linear profiles using generalised estimation equation

    Hi, I am Charles Okon a research student from Nigeria. Question How can I compute the ARL comparisons under different shifts of intercept,...

    Started by charlesokon‎, 07-13-2017 04:19 AM
    • Replies: 1
    • Views: 267
    07-27-2017, 01:50 PM Go to last post
  30. hope to make a sound when my program is finished

    Dear- In XP and Windows7, I used simple R command system("c:\\sndrec32 /embedding /play c:\\Myfile\\sound12.wav", wait=FALSE) to make a...

    Started by jk90029‎, 07-24-2017 11:53 PM
    • Replies: 1
    • Views: 400
    07-25-2017, 12:47 AM Go to last post
  31. Error in sort.list(y) ?

    I downloaded a dataset from the following link https://archive.ics.uci.edu/ml/datasets/human+activity+recognition+using+smartphones This is what...

    Started by t.wang21@yahoo.com.au‎, 07-17-2017 06:07 AM
    • Replies: 3
    • Views: 463
    07-20-2017, 12:25 PM Go to last post
  32. Combine two epidemiology netcdf files in R

    Hello, I have 2 netCDF files (each .nc file has 4 variables: Susceptible, Infected, Recovered and Inhabitable. The dimension of each variable is...

    Started by ashokkrish‎, 07-14-2017 02:15 AM
    geospatial, ncdf, rprogramming
    • Replies: 1
    • Views: 374
    07-19-2017, 10:02 PM Go to last post
  33. Generate Grouped Data with Exact Correlations, Means, and SD

    want to generate data with the following constraints. There is one factor and two numeric variables. Note that the desired mean structure is broken...

    Started by cla18‎, 07-17-2017 03:07 PM
    anova, rstatistics, simulated_data, split-plot model mixed
    • Replies: 1
    • Views: 230
    07-17-2017, 03:52 PM Go to last post
  34. Openbugs in R, log.txt not found

    Hi there, I am a new comer of both R and Openbugs. Now I am trying to run a multi-level model using Openbugs in R. I can get the result in the...

    Started by liushuci‎, 07-15-2017 03:07 AM
    • Replies: 1
    • Views: 292
    07-16-2017, 06:27 AM Go to last post
  35. How to generate many load profiles of EV superchargers in R

    Hi guys :wave:, I make balance simulation of load profile electric vehicle chargers in R. I use CHADEMO (45 kW). I need to genarate a lot...

    Started by creat‎, 07-13-2017 01:00 AM
    function, program r, simulation study
    • Replies: 0
    • Views: 206
    07-13-2017, 01:00 AM Go to last post
  36. H2o package error

    I use the h2o.init() function to initiatlize an H2o cluster but have had an error because of a long path. I am using Windows and R and H2o is in a...

    Started by t.wang21@yahoo.com.au‎, 07-13-2017 12:48 AM
    • Replies: 0
    • Views: 261
    07-13-2017, 12:48 AM Go to last post
  37. what is the best R package for mixed logit models?

    Hello everyone, I would like to estimate mixed logit models (e.g. mixed effect binary or ordered logit models) using mainly individual specific...

    Started by t.wang21@yahoo.com.au‎, 07-03-2017 08:02 AM
    • Replies: 3
    • Views: 633
    07-13-2017, 12:43 AM Go to last post
  38. How do I resolve 'Error singular gradient matrix at initial parameter estimates' in R

    Hello everyone, I am a PhD student and an intermediate in R. I work on metal (copper and zinc) mixtures toxicity in algae. I need help from...

    Started by Rafael007‎, 07-11-2017 11:36 AM
    • Replies: 2
    • Views: 273
    07-12-2017, 01:47 PM Go to last post
  39. [Simple R question] editor change

    Dear- Hi, long time no see. After starting RStudio, when we change a file a (existing) a <- edit(a) However, since RStudio editor is NO...

    Started by jk90029‎, 07-09-2017 08:29 PM
    • Replies: 2
    • Views: 354
    07-10-2017, 02:46 PM Go to last post
  40. How do I solve this dummy variable VaR problem? help!!!

    the problem is attached on a picture

    Started by AugusteDupin‎, 07-02-2017 04:20 PM
    • Replies: 1
    • Views: 346
    07-08-2017, 03:19 PM Go to last post
  41. Probability

    HI I have the attached data and would like to calculate: When the Status is Re-Activation what the probability is of it going past 0...

    Started by Danii_Pink‎, 07-06-2017 10:59 PM
    • Replies: 1
    • Views: 312
    07-07-2017, 12:10 PM Go to last post
  42. cross-validated predictions from glmnet

    Does anyone know if glmnet produces cross-validated predictions ie predictions for each observation fold that was left out of the model building (ie...

    Started by statlimp‎, 07-04-2017 02:26 AM
    cross-validation, glmnet
    • Replies: 2
    • Views: 435
    07-06-2017, 01:03 AM Go to last post
  43. error in using mlogit package

    Hello everyone, I am learning how to use mlogit package using the attached document. Whenever I enter the following command, however, I have got the...

    Started by t.wang21@yahoo.com.au‎, 07-03-2017 12:24 AM
    • Replies: 0
    • Views: 335
    07-03-2017, 12:24 AM Go to last post
  44. Extracting results from list objects (after performing multiple imputations)

    Dear TS, I have a question regarding extracting results from a list object. Here is an example: library(survival) library(mice) #...

    Started by ledzep‎, 06-27-2017 05:22 AM
    • Replies: 2
    • Views: 379
    06-29-2017, 06:43 AM Go to last post
  45. Modifying a R function

    Dear TS, I am trying to modify an existing R function from the MICE package. The standard implementation of multiple imputation in the MICE...

    Started by ledzep‎, 06-29-2017 06:36 AM
    • Replies: 0
    • Views: 385
    06-29-2017, 06:36 AM Go to last post
  46. how to plot a scatterplot with three different y axes?

    Hello, I have a dataset like the following: mydata <- structure(list(historical_sources = c(7.5, 6, 10, 2.5, 4.5, 2, 4.5, 2.5, 1, 7, 4.5, 9,...

    Started by gianmarco‎, 06-15-2017 11:09 AM
    • Replies: 4
    • Views: 954
    06-21-2017, 12:01 PM Go to last post
  47. how to extract the F value in anova from a permutation test

    Hi I did a permutation test using the following code perm=replicate(1000,anova(lm(sample(genenormal)~as.factor(snptest1)))) the I got the...

    Started by Marwah Soliman‎, 06-12-2017 11:47 PM
    rcode, rprogram
    • Replies: 1
    • Views: 491
    06-13-2017, 02:35 PM Go to last post
  48. Question Time-series data with non-unique time stamps, how to fix?

    I have a large data set that is in a dataframe object. My end goal is to convert it into a zoo object and run some time-series regressions. ...

    Started by doriengrd‎, 06-02-2017 01:34 PM
    • Replies: 1
    • Views: 550
    06-13-2017, 02:27 PM Go to last post
  49. reading dates from Excel: as.Date has problem with 1 date that looks just like others

    I have an Excel file with a bunch of dates. They all look as if they are formatted exactly the same. Here are 3 pasted from Excel: These...

    Started by efoss‎, 06-10-2017 12:02 AM
    • Replies: 1
    • Views: 384
    06-10-2017, 02:12 AM Go to last post
  50. Applying prepared script for one file to many files in a directory?

    I am having a problem with the main loop.it succeeded to finish reading and writing from the first file in my listfile(12 files) but failed when it...

    Started by Jonsson‎, 04-30-2012 12:36 PM
    2 Pages
    1 2
    r programming help
    • Replies: 15
    • Views: 3,082
    06-02-2017, 10:43 PM Go to last post
  51. Confidence interval with t-score in R

    Hello, I need to calculate the 95% confidence interval with a sample size = 200 stored in a vector named v_name. The problem says I need standard...

    Started by Regulus‎, 05-20-2017 01:38 PM
    • Replies: 1
    • Views: 1,142
    05-21-2017, 12:27 PM Go to last post
  52. Question Contrast drop off from factor x in using predict in decision tree in R

    Hi, I have tried research about this error warning message for several days without any info, e.g. ": contrasts dropped from factor staffx.f" etc.....

    Started by milk‎, 05-17-2017 09:49 PM
    contrast, decision tree
    • Replies: 3
    • Views: 726
    05-19-2017, 02:28 AM Go to last post
  53. Write a formula with R

    Hi everybody, I need help about the following formula because I have difficulties to write it correctly: $$\sum_{k \in U}{a_k d_k \frac{y_l -...

    Started by bomber‎, 05-17-2017 06:25 AM
    • Replies: 2
    • Views: 870
    05-17-2017, 10:32 AM Go to last post
  54. Clustering using Non Negative Matrix Factorization

    I have written code using Non negative Matrix Factorization. In the original matrix X, Row 3 is a duplicate of row 4. How can I interpret clustering...

    Started by bongielondy‎, 05-16-2017 07:55 PM
    • Replies: 0
    • Views: 696
    05-16-2017, 07:55 PM Go to last post
  55. 'Likert' package plotting

    Hi everyone I've been using the 'Likert' package for a while and find it pretty good. One thing I haven't been able to resolve is how to...

    Started by dt87‎, 05-12-2017 01:20 AM
    grouped data, likert, plotting
    • Replies: 2
    • Views: 913
    05-16-2017, 04:07 PM Go to last post
  56. How to put title to the visgauge graphs

    Dear All, I have two questions 1)How can I put a title "House sales" to the gauge plots? 2)How can I put break points on the gauge plots also?...

    Started by masarimk‎, 05-16-2017 04:26 AM
    • Replies: 1
    • Views: 814
    05-16-2017, 07:28 AM Go to last post
  57. how to extract titles out of a full name using (gsub)

    Using the titanic data set, I know you can extract a salutation out of a name using the following code name <- as.character("Braund, Mr. Owen...

    Started by semidevil‎, 04-24-2017 02:51 PM
    • Replies: 4
    • Views: 1,547
    05-15-2017, 01:44 PM Go to last post
  58. Help with error

    Hi All, I am trying to do a violinplot of different densities of particles. I stole this code from the ggplot page and it works perfectly fine...

    Started by AlinaMadita‎, 05-15-2017 08:54 AM
    • Replies: 0
    • Views: 613
    05-15-2017, 08:54 AM Go to last post
  59. averaging wind data from rWind package

    Hello! I came across an interesting package which allows to download (and plot) glbal wind data. The package is rWind. The wind data (i.e., speed...

    Started by gianmarco‎, 05-14-2017 01:38 AM
    • Replies: 4
    • Views: 860
    05-14-2017, 10:47 AM Go to last post
  60. how to label specific points in ggplot2

    Hello, I have the attached figure and I need the label of 2 points the purple and the blue points I used the following code ...

    Started by Marwah Soliman‎, 05-13-2017 03:47 PM
    • Replies: 1
    • Views: 891
    05-13-2017, 08:38 PM Go to last post

+ Post New Thread
Page 1 of 69 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 51 ... LastLast

Thread Display Options

Use this control to limit the display of threads to those newer than the specified time frame.

Allows you to choose the data by which the thread list will be sorted.

Order threads in...

Note: when sorting by date, 'descending order' will show the newest results first.

Icon Legend

Contains unread posts
Contains unread posts
Contains no unread posts
Contains no unread posts
More than 15 replies or 300 views
Hot thread with unread posts
More than 15 replies or 300 views
Hot thread with no unread posts
Closed Thread
Thread is closed
Thread Contains a Message Written By You
You have posted in this thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats