R programming and usage, R news, R tips and tutorials
I'm starting this thread out of frustration for my own oversight. blog.revolutionanalytics.com was having an R webinar today (LINK) that looked...
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...
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...
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...
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...
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...
Hey guys, I am studying about converting Matrix to Data frames. What I have observed though is that converting matrix with characters into a data...
Hi All, I would like to write a script to let R build a Bullet Graph (see attached pic). For given samples, the graph charts the means along with...
Hi! I'm an R-beginner and need to regress on several variables. I am using the lm-function. Unfortunately, it is not working, i.e. there is an...
Is it possible to store vectors as elements in matrices? Or will this problem need to be solved through object oriented programming.
Hello, I'm making a program that requires a selection of elements from a vector. Assuming the chances of any vector element being selected is...
I am trying to install R under Linux, but while executing the command "./configure" i am getting the error:- "configure: error: --with-readline=yes...
Hey folks, I am completely new to R programming and have been trying some stuff and am stuck at some places. I am not sure if this the right...
Hi everyone! After reading post in TS, I try to learn to use R, perhaps the nlminb() function to do a numerical maximization as a MLE question. ...
Hi there, I am hoping someone will be able to help me with a problem I have been having. I haven’t used R much so I am sorry if it is really...
Hello dear fellow R users, I have a regression model called "reg" with gdp as the dependent variable and a,b,c, etc. as the independent variables....
Hi, I used the white.test()-function and this was my result: White = 50, df = 49, p-value = 0.4334 Does that mean that there is...
I want to select only the data from an array that is sequential by column n. For example: n <- c(1, 2, 4, 6, 7, 8, 9, 11) x <- c(10, 20, 30,...
how can maximum the ...
Hello all, I'm currently doing a project which I'm trying to use R with to get more familiar with it. I've run into a problem with scatter...
Hello all: I posted a similar question in the SAS forum (asking if SAS had the capabilities of doing some type of Markov Decision Process). Since...
Hi, I've been spending quite some time to figure out how I can get the best R squared value from randomization of some values in a linear...
I want to find which points fall within an interest area, and then plot only those points. Here is a basic example. install.packages("sp")...
Hi, how I can install package from local tar.gz file??? please give me a sample tnx...
Hi everyone, I'm having some trouble with the function lines() in R. Here is an example of the code: <code> x=rnorm(100)...
Hello everyone! So... I am trying to learn how to correctly use the 'apply' function while learning something about the Wishart distribution. R...
Hi, I'm trying to analyze repeated measurements of body temperature data collected from 7 randomly chosen subjects (e.g. turtles). I am using R,...
Hi, I have a matrix x with 97 rows and used the function sample like this : rownumbers=sample(1:97,size=70) data1=x I'm having trouble to...
Hello all, I want to write an R procedure that calculates the power of a simple two samples t-test. Does anyone here has an idea how to do it ? ...
Is there any way of splitting AnonEtAl2013 into Anon Et Al 2013 All attempts have failed so far
I've got all the box plots: boxplot( Daten$Gewicht~interaction(Daten$Dosis,Daten$Geschlecht, drop=TRUE), ylab="relative Nierengewichte",...
Hi, I'm pretty new to R, and I have a question about plots. I've made a histogram about my data, but because i have very few data above 5, i...
my dataset looks like this in the beginning: Dosis weight sex 1 0 6.62 m 2 0 6.65 m 3 0 5.78 ...
I am trying to install the package rpud on a CENTOS Linux server and got the following error: /usr/local/cuda/bin/nvcc -shared -Xlinker "...
Hi All! This is my first post on this website (have been reading it for months though) so please bear with me if I don't do things right :) The...
Hi all, I have been attempting to run the following model in the lme4 package in R. ...
I am having some trouble trying to install a number of packages in R on my work computer. An example of the code I am using is as follows:...
Hi, I am just starting to use R for the first time. I am trying to figure out how to read XML is R. Does anyone know how to do that? Also, does...
How do I create a simple plot showing the mean and standard deviation in R, like that attached?
I have a data frame that looks like this: > x Name Group Score John A 90 John B 75 John C 100 Emma A 95 Emma B 80 Emma C 85
I couldn't run the below code in R; it runs when I change to T, but percent of male is not exact 49%. ni = length(ID <- 1:100) gender = c(0,1)...
lag1 <- lag(gdpts, -1) > union1 <- ts.union(gdpts,lag1) > union1 gdpts lag1 1952 Q2 0.000661460 NA 1952 Q3 ...
if I have the below sequence of sampling time points from 0hr to 1440 hr, how can I add noise to the below sequence, I don't think jitter() will work...
I'm about to finish my bachelor thesis, but I have some problem with my AR-GARCH model in R. I think I've found the correct way of implenting my...
Hi, im pretty new to R. I have this function that only works for positive values. Why is that? For example: annualize <-...
A parent with her two alleles of the B314 gene "transmits" or gives a copy of one of her alleles to each of her offspring. If she has two bad...
Could anybody please help me to create a longitudinal concentration dataset including: 100 subjects (ID) 51% female every subject has 3 study...
Hi, Thanks to helps from this forum and many helpful websites, I can generate a correlation network graph (see attached picture). ##I get a...
Hi I have a pairwise correlation table like one below. >library(Hmisc) > rcorr(as.matrix(data))
Hello everyone, I'm extremely new to using R and have been battling to process some data using an iterative function. I just wondered if anyone...
So I have a data set with the number of violent crimes known to police in various counties in Ohio since 1990 (the file is attached). Making the...
Dear R listers, I am looking for R code/function for Tukey- Duckworth two sample test and I am awiting for your attention kindest regards...
Hello, It's been more than a week now that I am banging my head on my desk to solve this problem. My data look like this : 6 groups of 5, 5,...
I am using R for one of the first times for a project. I am doing a fixed order, stepwise, multivariate multiple regression with 3 control variables,...
Hello, I'm trying to do a nested anova on the following dataset: ...
This was actually a CSV file but I did a "save as..." since this site doesn't allow csv files. I'm learning R but I can't seem to read this file in...
Is it possiblle to determine which effects are tainted using R or a package? I know that one can use R to determine which effects go into which...
Hello, I really need some help here. Im working on my final thesis and I rieally need hepl to find out, if any of 2 subsets of obserations are...
I'm trying to convert Royal Society for Protection of Birds into RSPB: x <- c("Royal Society for Protection of Birds") However, I can only get...
This thread is jsut to serve as a marker for future searchers as Dason answered this for me: sudo apt-key adv --keyserver keyserver.ubuntu.com...
I have homework problem on page 378 about breast cancer the question asks Suppose the a cancer is classified as benign if p 0.5 and malignant if...
I'm using git as a version control system in RStudio. I have several different versions of an R script saved in git. Lets say, I've deleted a block...
I'm editing my thesis and trying to find instances where I have repeatedly used the same word in the same sentence. I'm wondering if there is a way...
Halo all, I am very new in R and need help from the expert. Thank you in advance for replying my post. - I have set of long-term water...
Hello everyone, I was working on a regression problem, where there is one dependent variable (Y) which is continuous and two predictors A (expressed...
Figured it out, thanks.
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.
Forum Rules
Advertise on Talk Stats