R is a programming language and software environment for statistical computing and graphics.

learn more… | top users | synonyms

0
votes
0answers
22 views

What is the best way to learn R [closed]

I am new to machine learning and R world. I will appreciate guidance to learn R and implement it in my projects. Kindly suggest best way to learn and implement R.
0
votes
1answer
21 views

How to set R environment variables on Linux

I call a r script from PHP and it works well. I just call it using this function shell_exec("Rscript play.r"); To do that I had to make setting in environment variables in Windows to the R ...
-1
votes
0answers
16 views

Excel or R: Make 1 file for each line of a table, preserving the headers

I have 200 lines in an excel table that I'd like to split into 200 files (csv), with the headers maintained in each file. Is there a way I can do this using VBA in excel, or even R? Many thanks
0
votes
1answer
7 views

Anyone know how to set Notepad++ as default text editor for SAS, Stata and R?

Anyone know how to set Notepad++ as default text editor for SAS, Stata and R? I'm having the hardest time finding anything online (particularly for SAS). Looking for ability to run code from ...
0
votes
0answers
18 views

How do I add more words to an existing Aspell dictionary?

I have installed Aspell dictionary to spell check my document. But in the document there are some words which are spelled incorrectly but I do not want Aspell to detect those as incorrect. So, ...
0
votes
1answer
19 views

How to plot an R table in Linux terminal

I have a text file that I converted into a numeric vector: numbers <- scan("list_of_numbers.txt") I then put it into a table: t <- table(numbers) Which outputs like this: 1 2 ...
-1
votes
0answers
4 views

calculate AUC (GAM) in R [migrated]

I used the following script to calculate AUC in R: library(mgcv) library(ROCR) library(AUC) data1=read.table("d:\\2005.txt", header=T) GAM<-gam(tuna ~ s(chla)+s(sst)+s(ssha),family=binomial, ...
0
votes
1answer
19 views

Upgrade R version on Linux Red Hat 6.2

I have R 2.15.2 installed on Linux Red Hat 6.2 and I want to upgrade it to the lastest version because I cannot install some packages (like 'Rcpp', 'shiny' and others). How can achieve that? Thanks! ...
0
votes
1answer
19 views

How do i update R on Cent OS?

I am having issues finding a way to Update R on CentOS. I ran "yum remove R" and returned a successful message. But when i type R it still loads up the R environment. Do i need to remove it ...
0
votes
1answer
139 views

Change RStudio library path at home directory

Each time RStudio starts, it checks and creates ~/R if it doesn't exist. I want to change this path elsewhere. How can I do this configuration? I know that HOME=/some/path rstudio will work. But ...
1
vote
2answers
325 views

Automatic update to 3.1.0 beta (2014-03-28 r65330) on Ubuntu 12.04

I am re-asking this question on behalf of ECII who originally asked it on stackoverflow but which got shut down: ...
0
votes
1answer
50 views

Importing an excel sheet with many empty cells into R

I have a big excel sheet that have lots of empty cells. I'd like to import it in R. I'm fine if in R, all the empty cells are replaced by "NoData". Replacing all empty cells by "NoData" on Excel and ...
1
vote
1answer
42 views

How to enter an existing R shell from command line linux

All, I'm accessing a remote server via SSH and running an R process on that server. We're in development right now, so it's important for me to enter the R shell and run line by line commands. Last ...
0
votes
1answer
188 views

Newest version of R broke everything (ubuntu, version 3.03/version 3.10)

I updated R through the ubuntu software manager to 3.03. When I run R, it shows version 3.10 beta which I DON'T want, however, there is only mention of version 3.03 in the software manager. ...
2
votes
1answer
47 views

Flatten transparent pdf image in linux using command line

I'm using R to generate graphics with many transparent layers. I want the output as a pdf, but filesizes explode when there are so many transparent layers. I can manually open each one in GIMP and ...
0
votes
0answers
50 views

R Markdown editor for eclipse

Do you know of any plugin/editor that will display/handle R Markdown files (extension .Rmd) in Eclipse in a similar way as RStudio does (syntax highliting, ability to execute R code directly in the ...
5
votes
2answers
141 views

How can I open a massive PDF?

I created a massive (7GB) PDF in R, and now every computer/program combination I try and open it with craps out. I'm not even sure why as the entire file fits easily in RAM on more than one of the ...
0
votes
0answers
116 views

View more than 1000 rows in Rstudio

How can I view more than 1000 rows Rstudio because the view command show me only 1000 rows instead of 103400 in my data file. library(foreign) stata <- ...
0
votes
0answers
46 views

acer aspire 7741Z-5731 Restarts itself

I turn on the laptop and it turn on as it usually would but once it gets to the first screen of "acer empowering people" it restarts itself and it does it over and over. I try tapping F8 so that I can ...
0
votes
0answers
34 views

check --as-cran a R package fails because of 'example' in .Rd documentation

I have a problem as I check my R source package. In my documentation file (*.Rd) there is a example section, as long as this section is blank my check passes, but when its not blank it fails no matter ...
1
vote
1answer
88 views

How to calculate the equivalent of RATE in Excel in R?

Given a repayment and the loan term, I'd like to be able to calculate the interest rate for a loan. In Excel, I can use the RATE function but I'm not sure what to use in R and googling is difficult ...
0
votes
1answer
122 views

Transpose data at particular row w python,r,sql?

Lets say I've got following data (about 50k of rows in real example) A B C D E X A B C D E F G H X And I want it to look A,B,C,D,E,X A,B,C,D,E,F,G,H,X So technically I want to transpose ...
0
votes
0answers
41 views

Stanford Wrangler ideal, but imposes limits, what are other options?

Stanford Wrangle tool is quite amazing, and I solved a giant problem with it, but it limits me to very small size. My file is about 500MB, and it allows me to process less than 1MB, the remaining data ...
0
votes
0answers
90 views

block bootstrap for panel data

I want to obtain "Block Bootstrap" 95% confidence intervals for a panel data analysis. Does anyone knows a routine or code for R or Stata in which one can do this analysis for panel data. I would ...
0
votes
1answer
117 views

how to call .R script using .sh in windows

I have an analysis to run in skatMeta (R package). I received a runscript.sh that calls myfile.R to run the analysis. However, the script is written for Linux, but I only have Windows. I installed ...
1
vote
0answers
23 views

R can't find RSQLite package when run in Emacs (iESS)

I have R 3.0.2 (both x64 and x86) running on Windows 7 x64. I've recently started using Emacs as a front-end to R (x64) via the iESS mode. This normally works well, the only catch is that I have to ...
0
votes
0answers
172 views

Installing R core rpms on centos - Need a best way to resolve dependencies

I am newbie to the Linux. I need to know the best way to handle the dependencies. The issue is, I need to install R - core and R - dev (R language packages) on an platenized centos linux host on ...
1
vote
1answer
670 views

Apt-get install r-base installing R version 2.15, not R 3.0

I'm installing R on an Ubuntu 12.10 x64 and when I run: sudo apt-get update sudo apt-get install r-base And I am getting R version 2.15.1. Shouldn't this get me the most recent version R 3.0.2?
0
votes
1answer
19 views

Can't execute mingw toolchain provided by Rtools

I can't execute R CMD INSTALL on an installation of R + Rtools in Wine (latest version from ppa:ubuntu-wine/ppa). A reproducible script and console output can be found here: ...
0
votes
0answers
37 views

Getting RQuantLib to work in R 3.0.2

I have installed the latest version of R from apt. When I try to install the RQuantlib package, I get an error because Quantlib is not installed. When I try to install QuantLib, it says that the ...
0
votes
1answer
285 views

(AHK script to) Parse the clipboard contents and paste after modifying them

I am very new to AHK and struggling to do the following Action: copy some text which looks like ABC 2013-12-31 Desired result (by a keystroke) is to paste after modifying the original clipboard ...
2
votes
1answer
385 views

R locale setting problems on Mac OS X

I'm trying to install packages in R using Mac OS X, but I keep getting tar: Failed to set default locale errors for any package I try. After Googling around I found that this was due to unexpected ...
0
votes
1answer
57 views

Trouble using the back arrow key in R

I am sshing to a linux server via ExtraPutty and am running R. If I type some code and then I hit the back arrow three times, I get the following output: blah blah some code^[[D^[[D^[[D The R ...
0
votes
0answers
97 views

Rstudio Server Mac OS X - Set up for remote access

I've just installed RStudio server on a Mac OS X machine. It works alright when I use localhost:8787 from the browser on the installed machine, but I´m unable to access the server from other machines. ...
0
votes
1answer
701 views

Linux Fedora - how to create DSN of database in MySQL instance running on localhost for use by RODBC?

A few preliminaries - OS: Fedora release 16 (Verne) MySQL server version: 5.5.29 MySQL Community Server R version: 2.15.1 (2012-06-22) -- "Roasted Marshmallows" I am running a MySQL server that ...
2
votes
1answer
222 views

emacs R mode ESS

I can run the R interpreter through emacs. However, I am looking for the R mode for writing scripts that would perform syntax highlighting, autocompletion and so forth (let me know if there are other ...
1
vote
1answer
973 views

Strange, extra lines in images in .pdf saved with MS Word (happens with images from R and possibly other images)

I used MS Word 2010 to save a document as a .pdf file, and some of the images have strange, extra lines on them. This happens whether the source document is a .doc file or a .docx file: Can anyone ...
2
votes
0answers
1k views

Sublime Text - keyboard shortcut binding not functioning

Following the instructions here, I've set up a new installation of SublimeText for use with R. I have no other SublimeText plug-ins installed. The keyboard shortcuts that are setup using the ...
0
votes
1answer
277 views

Clues to guess CPU performance for single-threaded tasks

Can one somehow guess how for example Intel Core i5-3320M @ 2.60GHz (dual core) and Intel Core i7-3612QM @ 2.10GHz (quad core) would compare on basic single-threaded tasks? I know this is problematic, ...
2
votes
0answers
98 views

Multiple linked sessions/instances of Vim and R with Vim-r-plugin

OSX 10.8. MacVim + Vim-r-plugin = Vim sends commands to R. Awesome! (Note I'm here asking about using MacVim and R.app (i.e. w/ Gui), not either in a terminal, since for this purpose I need both to ...
0
votes
0answers
361 views

How to allow apache to execute R binary from PHP exec() without disabling SELinux?

I have R installed in /opt/R of webserver. I need to execute script.r (In R BATCH mode) that is on directory /var/www/html/ using PHP function exec(). SELinux is enabled in the webserver. I suppose ...
1
vote
1answer
1k views

Why is R having trouble rendering plots to a PNG file?

I am trying to get R to do some very basic plotting and such in UNIX, but am getting a weirdo error relating to X11, when as far as I can tell I'm not even needing X11. I have a matrix name d and ...
1
vote
1answer
127 views

Can emacs be used across multiple screens?

I would like to use emacs across multiple monitors: one monitor would have code the other would have the R session that will be processing the code submissions. I am in a Windows machine logging into ...
2
votes
1answer
42 views

How to estimate compute time on EC2?

I need to generate data samples for my thesis, using some R/C++ code I've written. It can be embarrassingly parallel, and I've generalized it to run on local multicore machines without much trouble. ...
0
votes
1answer
112 views

NppToR Error, cannot retrieve Text

I use Notepad++ to write my R-scripts and NppToR passes lines or the entire file to R which serves as a very convenient combination of programs concerning the workflow for R scripting. Now, NppToR ...
-1
votes
1answer
379 views

How can I “flatten” a PDF scatterplot with many points generated with R?

I have a scatterplot which I generated with R, it shows many thousands of overlapping points. I need to graphically annotate the generated PDF further, in PDF format, with Inkscape. However, it is ...
6
votes
1answer
3k views

Getting R 3.0 in Ubuntu

I am currently using R 2.15.3 (Security Blanket) in Ubuntu. R 3.0 is already released, but I could not update to it using apt-get. Will there be any trouble if I install it from tar.gz from cran ...
1
vote
1answer
229 views

What is the best way to merge two sets of files, but for duplicates to select the older file in Windows?

I have stumbled into a dumb usage case. I want to merge two folders in a particular way (I guess these are called folders now, I still think of them as directories, but whatever). The folders have ...
3
votes
2answers
688 views

How to install “gputools” in R

I have use a self-complie R 2.15 on CentOS 6.4 All CUDA environment is correct (I have wrote CUDA C program) and I have yum installed R-devel I still can not install gputools for R Why? * ...
2
votes
2answers
416 views

ipython and sublime text 2

I really love how Rstudio has a shortcut for running a line of selected code, this allows for much quicker coding. I notice more and more however, that I need to work in python as it offers a bit more ...