r/R_Programming • u/Kindlychung • Sep 22 '15
r/R_Programming • u/loudmeower • Sep 21 '15
Psych package
I am using the psych package to calculate alpha for a scale of several items. However, I can only get the output to show 2 decimal places for alpha, and I need 3 decimal places. Using alpha(x, digits=3) is not working. Any advice?
r/R_Programming • u/deadletter • Sep 19 '15
I want interactive sliders... on a 3d graph. Any ideas?
I've tried 'manipulate' and I can get a slider with it's little 'gear' to pop it up on a regular plot - but not on plot3d.
I've tried learning shiny and I'm not really understanding how to use the plotOutput to change the very nature of the plot which it is putting out...
Ideas?
r/R_Programming • u/islandermine • Sep 07 '15
Sample Datasets
Hi, guys!
I'm trying to get used to using R, and other than volcano (the built-in dataset), are there other premade practice datasets that I can use? Thanks!
r/R_Programming • u/kyoushu • Aug 17 '15
DataJoy: ambiente para programação em R ( CLoud) [Portuguese]
r/R_Programming • u/arbonap92 • Jul 27 '15
GIS/Mapping how-to in RStudio?
Can anyone show me in a basic, easy-to-follow steps how to map different colored points on a state map of Florida in RStudio? Is there an easy package out there for an R n00b like me?
Thanks!
r/R_Programming • u/cinaptonod • Jan 18 '12
Credit rating by country with R and googleVis
r/R_Programming • u/cinaptonod • Jan 17 '12
[R] Quantitative Finance & Technical Trading
quantf.comr/R_Programming • u/arctium • Jan 05 '12
Adding multiple ellipses into scatterplot! How?
I have to make a scatterplot graph with multiple point groups plotted into one. The thing I want to do is to draw a range ellipse around each group (I have 6 groups). It's basically a DCA ordination diagram.
The code for plotting the graph is:
library(lattice) xyplot(X1~X2, groups=classes, pch=1:6)
I hope this makes any sense!
r/R_Programming • u/fnord123 • Aug 10 '10
Revolution Analytics - Commercial Software & Support for the R Statistics Language
r/R_Programming • u/Christiand087 • Feb 22 '18
Fat Genuine Pigs Going Throught Tight Mazes
r/R_Programming • u/gruyereparty • Nov 25 '17
Subsetting Problem
Hi everyone,
New to this subreddit. I'm in a Big Data class in school and we're using R. So far, so good, but I'm running into an issue with subsetting.
Our project is to create graphs based on a large csv which shows website traffic data from our school. We are supposed to use only the United States, but the data shows many other countries.
I thought I subsetted the data correctly, and when I do summary() it shows how I want it to - by filtering out all the other countries.
Within this data are regions - aka states. I would like to use R to make a barplot that shows only "regions" of the United States. To do this, I used the subset I created, however, the plot shows ALL countries and regions, which gets super cluttered!
Here's an example of what I did:
America <- webtest[webtest$Country=="United States", ]
barplot(table(webtest),
col = rainbow(3),
ylab = "Count",
xlab = "State",
ylim= c(0,50000),
main = "Barplot of Frequency of States",
las = 2)Any help would be much appreciated. Thanks!
Edit: Sample data
Focus Country Region City Datehour Entrances Visitors
Admissions Pakistan (not set) Islamabad 2012112500 1 1
Admissions Pakistan (not set) Islamabad 2012112500 0 1
Admissions Singapore (not set) Singapore 2012112500 1 1
Admissions USA California Concord 2012112500 0 1
Admissions USA California Concord 2012112500 0 1
Admissions USA California Concord 2012112500 0 1r/R_Programming • u/taku_daVinci • Sep 20 '17
Minimax Regret Problems
I'm new to R Programming and i need help with solving savage/minimax regret problems in R.
r/R_Programming • u/moonwriter • Apr 26 '16
Notation Help
I've come across these notations in R before, but I don't know how it works. the characteristics are simple. in the first case, it's some expression/subset in square brackets, and directly outside those square brackets, there is a parentheses with a number. So, for instance:
addup[1] where addup is clearly a list.
in the second it's the opposite. For instance: object <- as.list(substitute(list(...)))[-1L]
In abstract terms, what exactly does these notations mean/do?
thanks!
r/R_Programming • u/[deleted] • Apr 14 '16
Automated pricing models for free
r/R_Programming • u/mangoworkout • Mar 05 '16
Help on selecting a Validation Model for a retail dataset.
Link to the retail dataset: http://fimi.ua.ac.be/data/retail.dat
Things I know: -Divide the data into 3 subsets-training (60%), validation(20%) and testing(20%) dataset -Apply the model on the training dataset -Test the model on the testing dataset
Things I need help in: -What model to apply on this dataset and how- what is the R code -What is the validation dataset used for -Where do I find related help about this online
I'd really appreciate help on this since this is for an important assignment and I'm very confused.
r/R_Programming • u/collegepython • Feb 19 '16
Interpreter to use for R
Hello all,
I'm planning on learning R and I wanted to know what interpreter you would all suggest to use? I know there are a few different ones but I didn't know which ones you all would suggest.
r/R_Programming • u/Sashelp • Feb 01 '16
What procedures can you use to calculate raw or unstandardized regression coefficients in r/matlab?
r/R_Programming • u/Begbe • Nov 29 '15
Issues with Pie Graph in R-Studio
Hi -
I am new to R-Programming and have an assignment due Monday morning for school. It is a rudimentary Pie Graph, but I have so many variables at such close intervals that the names are overlapping in the Plot Print Out. Is there a way to seperate them or color code in a manner that pulls the names away from the graph and illustrates it in a color coordinated 'Key' away from the pie chart itself? I am really struggling here and any help would be greatly appreciated. Please forgive the basic skills on display, but this is what I have so far:
attach(FL_ORGANIZATION_FILE) [1] 257657 24 names(FL_ORGANIZATION_FILE) "INTEREST_TYPE" Class(INTEREST_TYPE) "factor" table(INTEREST_TYPE) INTEREST_TYPE count <- table(INTEREST_TYPE) table(INTEREST_TYPE)/37 percent <- table(INTEREST_TYPE)/37 pie(percent, main="Types of EPA Approved Organizations Operating in Florida") box()
r/R_Programming • u/Tripleh280 • Sep 19 '18
Need help to write a program
If anyone can help me figure out how to: Create two vectors. To define the first vector (named even) with all the even numbers between 200 and 225. To define the second vector (named odd) with all the odd numbers between 200 and 225.
Define a data frame with these two vectors and find the mean of both the vectors in the dataframe (mean$even)
and finally create a vector in the dataframe with the values from 225-238 and find the summary of the dataframe.
Really confused by all this, i'm still learning.
r/R_Programming • u/[deleted] • Apr 08 '18
Linear Mixed Effects project
I'm looking for a data set that lends itself to linear mixed effect analysis. Does anyone know some good places to find one?