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

learn more… | top users | synonyms

0
votes
0answers
6 views

How do I get the latest version of R to work in RKWard in Ubuntu?

I am currently using R version 3.02 in Ubuntu 14.04LTS, but I need to upgrade to the latest version. When I run sudo apt-get install R-base, I get a message saying that I already have the latest ...
0
votes
1answer
27 views

ggplot2 doesn't load in R/RStudio - Application not responding

I have installed ggplot2 version 1.0.1 on R version 3.1.3, using install.packages('ggplot2', dependencies=T) Checking for the installation: find.package('ggplot2') returns [1] ...
0
votes
0answers
5 views

ifelse in 'r' returns NA value [migrated]

I have two data frames, and I want to match contents of one with other, for this I am using following function: t <- read.csv("F:/M.Tech/Semester4/Thesis/Code/Book1.csv") s <- ...
0
votes
1answer
27 views

R not reading Rprofile.site at startup

When I start R it’s meant to read from /etc/Rprofile.site first thing. I’ve verified that this isn’t happening but have no idea why or how to fix it. When I source('/etc/Rprofile.site') at startup ...
0
votes
1answer
21 views

Emacs is not recognizing R scripts as commands I could see only text lines [closed]

I am using Emacs for R when I type in R scripts I could see only text lines and not as scripts so eventually I could not able to run. I saved the work sheet with *.R extension. Please help me thanks
1
vote
0answers
25 views

Right click a csv file to read in RStudio?

I would like the ability to right click on a .csv file and read it in RStudio (an IDE for the statistical language R). When I say "read it in RStudio" I mean open up RStudio with the line ...
0
votes
1answer
44 views

Performance comparison for older server [closed]

Given the falling price of older decommissioned server hardware, I am considering purchasing one to use for my research at home. I will be running Linux, PostgreSQL, Neo4j and R-Server on it. I ...
0
votes
1answer
42 views

Keyboard shortcut for maximize and minimize Rstudio Console

In Rstudio you can manually maximize the editor panel by clicking the icon in top-right corner. When executing code, the console will slide into view automatically, but then one has to ...
1
vote
1answer
53 views

Change R BLAS library path

Currently the R on my system using this library for `BLAS': ldd /usr/lib/R/bin/exec/R libblas.so.3gf => /usr/lib/libblas.so.3gf I want to change the path to use ACML. Is it possible to change ...
0
votes
3answers
184 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 ...
0
votes
1answer
341 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
43 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 ...
2
votes
0answers
759 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
36 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
145 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
77 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
117 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
26 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
26 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
72 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 ...
1
vote
1answer
98 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
190 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
147 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
75 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
438 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
348 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
447 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
3k 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
433 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
252 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
139 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
475 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
143 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
201 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
158 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 ...
2
votes
2answers
455 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 <- ...
1
vote
0answers
84 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
160 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
244 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
48 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
268 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
67 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
961 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
26 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: ...
1
vote
1answer
586 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 ...
3
votes
1answer
1k 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
117 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
470 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
3k 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 ...