R is an open source programming language and software environment for statistical computing and graphics. It is an implementation of the S programming language combined with lexical scoping semantics inspired by Scheme. R was created by Ross Ihaka and Robert Gentleman and is now developed by the R ...

learn more… | top users | synonyms (1)

0
votes
0answers
7 views

R calculate possible values of two variables

I'm trying to calculate all the possible values of a grid size (x by y) that lead to the same number of cells, so for example a 2x2 grid has a cell size of 4. I want the y to be half of the x, and the ...
1
vote
1answer
11 views

create a new column that arrange data frame order based on previous columns

i have a data frame like this: A B C 1 1 1 0.4519 2 101 1 0.3819 3 201 1 0.3819 4 301 1 0.2819 5 401 1 0.9819 6 501 1 0.6819 it's larger but that's an example. i want ...
0
votes
0answers
19 views

Translation of R script using gettext

Is it possible to use something like gettext to translate an R script. If so, how? If not, what other options I have?
0
votes
0answers
10 views

Posterior probability using Forward backward algorithm in R

For one of my projects I need to find posterior probability of visiting a state S and emitting a symbol. I have built a HMM in R and later I get one observation sequence. But, I am not able to ...
3
votes
1answer
31 views

ggplot2 faceted line plot has areas of the line filled with solid color, why?

I have a question regarding a weird result for a line plot that uses facets. I have water data masurements for different depth (=pressures). The data comes as a table as such: Pressure Temperature pH ...
2
votes
1answer
34 views

how to communicate with R through VBnet( or C#)

Recently, I Developed an Experiment Application with VB.net(in Windows platform), When the application collected the data,I want to use R to Analysis the data, But I don't know how to Communicate ...
0
votes
1answer
26 views

Geom_ribbon() just turns the graph blank

Hi I got a data frame weekly.mean.values with the following structure: week:mean:ci.lower:ci.upper Where week is a factor; mean, ci.lower and ci.upper are numeric. For each week, there is only one ...
0
votes
0answers
26 views

Subtract column-specific value for a particular row from all values in data frame, in R

I have a data object 'signal' in R with 40,000+ rows (named variables) of numeric values and 200+ columns (samples). For every row of each column, I want to subtract the value for the row named ...
1
vote
0answers
22 views

R: creating a map of selected Canadian provinces and U.S. states

I am attempting to create a map of selected Canadian provinces/territories and selected U.S. states. So far the nicest maps appear to be those generated with GADM data: http://www.gadm.org/ However, ...
7
votes
0answers
28 views

FAQ markup to R data structure

I'm reading the R FAQ source in texinfo, and thinking that it would be easier to manage and extend if it was parsed as an R structure. There are several existing examples related to this: the ...
3
votes
1answer
36 views

Is it possible to read EXIF data with R?

I need to manipulate some image files based on their EXIF data. Can something like this be done in R? I have not seen any R functions which could read EXIF data directly.
2
votes
1answer
35 views

How can I format axis labels with exponents with ggplot2 and scales?

With the new version ggplot2 and scales, I can't figure out how to get axis label in scientific notation. For example: x <- 1:4 y <- c(0, 0.0001, 0.0002, 0.0003) dd <- data.frame(x, y) ...
0
votes
0answers
24 views

Using KDD cup 99 dataset and machine learning with R

I am trying to use the KDD cup 99 dataset with R but unfortunately, I get very bad results. Basically, the predictor is guessing (~50% error on the cross-validation set). There is probably a bug in my ...
2
votes
1answer
20 views

Correlation matrix with p-values for xtable

I want to have correlation matrix with p-values for xtable to be use in Sweave. I tried this library(ltm) library(xtable) mat <- matrix(rnorm(1000), 100, 10, dimnames = list(NULL, LETTERS[1:10])) ...
1
vote
1answer
15 views

R XML package weird bug while parsing xml and html files

I am using R's XML package to extract all possible data over a wide variety of html and xml files. These files are basically documentation or build properties or readme file. <?xml version='1.0' ...

1 2 3 4 5 860
15 30 50 per page