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

learn more… | top users | synonyms

0
votes
3answers
26 views

RStudio does not start with Mac OS Mavericks and R 3.1.2

I am confronted with the problem that my RStudio does not start anymore. I got the newest version of RStudio 0.98.1091 and it all started after I installed the newest version of R. After some ...
-1
votes
0answers
11 views

Split lists in vectors in R [migrated]

I have many lists in R whit the structure like: >lists <- list(a = letters[1:6], b = letters[7:13], c = letters[14:25]) >lists $a [1] "a" "b" "c" "d" "e" "f" $b [1] "g" "h" "i" "j" "k" ...
0
votes
1answer
34 views

Any alternative to using RODBC for R version 3.1.2?

I am unable to install package RODBC. I get an error. install.packages("RODBC") package ‘RODBC’ is available as a source package but not as a binary Warning in install.packages : package ‘RODBC’ is ...
0
votes
1answer
20 views

Merge two files with fuzzy / inexact key column

I have two spreadsheets with different dimensions. They share a common column, but not all the names are 100% similar. Specifically, I'm merging two data files from counties around the US, one has ...
0
votes
0answers
73 views

Installing R on RHEL 7

Hoping you are doing well. I'm trying to install R on RHEL 7. I'm using epel-release-7-2.noarch.rpm and resolved many dependencies (one by one by manual .rpm installation) but at the end of the ...
0
votes
0answers
30 views

Changes in level of compression between different versions?

I used the save function with xz compression as in save(a, b, file = "c.RData", compress="xz") This produced a file of different size on my disk (11589212 vs. 1162284 bytes) switching from R.3.1.1 ...
0
votes
2answers
32 views

Rmarkdown editing + language highlighting in notepad++

R Markdown is an authoring format that enables easy creation of dynamic documents, presentations, and reports from R (source) it is developped and supported by RStudio. I am looking for a ...
0
votes
0answers
34 views

'personal library' errors when installing R packages

When installing the following R packages, it prompts for using a "personal library": > install.packages('mime', 'digest', 'markdown') Warning in install.packages("mime", "digest", "markdown") : ...
0
votes
1answer
58 views

Installing pROC in RHEL 6.2 and Rcpp issue

I have R 2.15.2 installed on Linux Red Hat 6.2 and I want install pROC package but I get an error related to Rcpp package. Then I tried to install Rcpp with no success. How can achieve that?. I ...
2
votes
1answer
23 views

How do I search for “R” in software repositories? [closed]

The name of R consist of only on letter, and searching for it does not provide anything useful. How do I efficiently search in package repositories (and on Google, for example) for information ...
0
votes
2answers
25 views

Does Website slows the WiFi connection?

I have a WiFi connection and 8 people are sharing. The 8th person suddenly made his own "website" similar to YouTube sharing videos, our countries TV stations, movie channels, movies, songs, etc. Our ...
0
votes
1answer
43 views

Same formula with different results in R and excel?

I have calculated the load for 3 water quality parameters in R for specific days for the whole year using this formula. I calculated 7 scenarios using the previous formula. Each scenario represent ...
0
votes
0answers
30 views

2d density graphs with R

I would like to plot a 2D density plot using R. I have a 2 dimensional data and would like to plot it in such a way that the dense part (with data points) of the graph is represented as red and less ...
1
vote
1answer
75 views

How to interpret Linux `top` command

I am running a R script and it is actually a long for loop. Here is a screenshot of the "top" command. You can see that it says R is using 100 % CPU but on the top line, it says 4.2% usage for user ...
0
votes
1answer
105 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 ...
0
votes
1answer
91 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
54 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
174 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 ...
0
votes
1answer
138 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
199 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 ...
2
votes
1answer
2k 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
418 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
145 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
87 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
376 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
106 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 ...
1
vote
0answers
140 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
152 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 ...
1
vote
1answer
276 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
64 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 ...
1
vote
0answers
66 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
128 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
215 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
46 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
1answer
192 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
51 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 ...
1
vote
1answer
887 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
24 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
1answer
445 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
753 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
98 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
1answer
1k 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
383 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
2k 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 ...
3
votes
0answers
2k 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
310 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, ...
3
votes
0answers
115 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
492 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
2k 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
154 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 ...