r/R_Programming • • Feb 22 '18

Fat Genuine Pigs Going Throught Tight Mazes

Thumbnail
youtu.be
0 Upvotes

r/R_Programming • • Feb 21 '18

Hey

0 Upvotes

What’s new


r/R_Programming • • Jul 17 '16

R programmer of reddit, please give me some sort code

0 Upvotes

I'm a novice of R programming, in order to improve my programming skill, I want to understand sort algorithm.

So, I want some codes of sorting. Please give or teach me sort algorithm.


r/R_Programming • • Feb 23 '18

Life changer

0 Upvotes

This is a life changer!


r/R_Programming • • Feb 19 '16

Interpreter to use for R

0 Upvotes

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 • • Nov 25 '17

Subsetting Problem

0 Upvotes

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	1

r/R_Programming • • Feb 01 '16

What procedures can you use to calculate raw or unstandardized regression coefficients in r/matlab?

0 Upvotes

r/R_Programming • • Feb 17 '18

someone waiting on the other side of that lends

0 Upvotes

I had to accept that I may have spent a few years believing I was a dirt y girl due to being told at 15 someone was waiting for me on the other end of the computer. I also had to accept I occasionally will react based on thinking I'm being watched. As well an alternative perception that I am annoyed or displeased with my" dirty girl" persona . I feel like I am processing information like a computer now and I am pretty passed I did not get more input


r/R_Programming • • Sep 20 '17

Minimax Regret Problems

0 Upvotes

I'm new to R Programming and i need help with solving savage/minimax regret problems in R.


r/R_Programming • • Mar 05 '16

Help on selecting a Validation Model for a retail dataset.

0 Upvotes

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 • • Nov 29 '15

Issues with Pie Graph in R-Studio

0 Upvotes

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 • • Apr 26 '16

Notation Help

0 Upvotes

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 • • Apr 14 '16

Automated pricing models for free

Thumbnail
customerinsightleader.com
0 Upvotes

r/R_Programming • • Nov 17 '15

R studio crashes everytime I want to create a project?

1 Upvotes

Anybody else experienced this and know what to do?


r/R_Programming • • Apr 08 '18

Linear Mixed Effects project

0 Upvotes

I'm looking for a data set that lends itself to linear mixed effect analysis. Does anyone know some good places to find one?


r/R_Programming • • Jan 03 '18

I would like to learn R, but I have a doubt

1 Upvotes

Hello friends, a question, do people who program in R, must know other languages or knowing only R can access a job? Thanks.


r/R_Programming • • Sep 07 '15

Sample Datasets

1 Upvotes

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 • • Sep 19 '18

Need help to write a program

0 Upvotes

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 • • Nov 03 '16

Writing 2048 game in R

1 Upvotes

Any simple algorithm to write the game rather than use the package?


r/R_Programming • • Sep 18 '16

Changing the startup directory in linux

1 Upvotes

I recently decided to change my computer over to dual-booting Linux (CentOS 7) and Windows, and because I like CentOS better, I am now using R more often there, from the terminal. Because I have a shared partition between my operating systems, and run R in both, it makes sense to have an R folder that each goes to by default.

In order to do that smoothly, I want to specify the default/startup directory that R goes to. I did that fine in Windows, using the Rprofile.site file. What I can't figure out is how to do the same thing in my Linux OS. I don't have an R folder in /bin/ or /etc/ and I can't find the Rprofile.site file. Anyone have experience with this that could help me out? I've tried googling but didn't find anything helpful.


r/R_Programming • • Oct 02 '11

An example in R: Stacked Bar Graph

Thumbnail
imgur.com
1 Upvotes

r/R_Programming • • Nov 04 '15

Quick R Assignment Help

1 Upvotes

Hello reddit. I have a question pertaining to my data frame. The code is as follows:

check <- function(x) {
 subj <- unique(data$participants[data$participants == x])
 numSessions <- length(unique(data$sessions[data$participants == x]))

 if (numSessions > 1) {
  sessionIDs <- data$sessions[data$participants == x]
  cat(x, "has", numSessions, "sessions:\n")

  for (id in unique(sessionIDs)) {
   cat("Exclude session", id, "\n")
  }
}
}

data <- data.frame(participants = c('a101', 'a101', 'a101', 'a101', 'a101', 'b102', 'b102', 'b102', 'b102', 'b102', 'c103', 'c103', 'c103', 'c103', 'c103'), sessions = c(32651, 32652, 32652, 32652, 32653, 44444, 44444, 44444, 44444, 44444, 36543, 36543, 36543, 36543, 36543))
for (participant in (unique(data$participants))) {
check(participant) 
}

In my function that I call "check", if there are multiple sessions per participant ID, I want to exclude the extra sessions. For example, participant a101 has three separate sessions. I want to have my code output something along the lines of: exclude session 32652 exclude session 32653. Is there a way to use the cat function to have it "skip" over the first session number and only list the other two instead?


r/R_Programming • • Oct 30 '15

HELP with survey "Study on determinants of R programming Acceptance"

1 Upvotes

I am conducting a research study on R programming Acceptance. The results from this survey will help better understand the future use of 'R’. This survey should take 4-5 minutes to complete. Be assure your responses will be strictly confidential. Thanks for agreeing to take part in this study. http://goo.gl/forms/X2aiBTzxHw


r/R_Programming • • Feb 16 '16

Atom for R?

2 Upvotes

Hi,

Getting into R programming for analysing stock market/economic data, and struggling with which text editor/IDE to use, bearing in mind that once I'm comfortable with R I'm looking to move onto python and some JS and CSS and don't want to be repeatedly learning new tools/environments i.e. would like to stick to one editor.

Love the features and future possibilities of atom, but R support seems fairly limited atm. I've installed the language-r package and lintr (which is spitting out the error "Error: 'R' is not recognized as an internal or external command, operable program or batch file." if anyone knows how to fix this it would be highly appreciated), though i believe in order to run the code you have to copy it over to the Rterminal to run it/interact.

should i stick with this workflow and wait for a package to be released to interact with the terminal from within atom, or move over to emacs + ESS or something similar? open to suggestions, thanks everyone !

Dan


r/R_Programming • • Aug 02 '17

Free introduction to R webinar, Thursday 8/10

Thumbnail
info.leveledu.com
2 Upvotes