R is a free, open source programming language and software environment for statistical computing, bioinformatics and graphics. It is advised to supplement your question with a reproducible example (http://stackoverflow.com/q/5963269); for statistical questions please use crossvalidated.com.

learn more… | top users | synonyms (1)

0
votes
0answers
3 views

R: rank () row-wise instead of column-wise

My problem in short: How to use rank() row-wise instead of column-wise. Detailed description: I have a matrix (11 x 12; 11 rows – 12 columns), where the rows represent my 11 participants and the ...
-1
votes
0answers
14 views

How to identify paragraph breaks with R

I have copy-pasted some text from a pdf file to a new .txt file. The line breaks and paragraph breaks are the same as that of the pdf source. Is there a way to distinguish between paragraph breaks and ...
2
votes
1answer
10 views

interactions terms in multiple imputations (Amelia or other mi packages)

I have a question about interaction terms in multiple imputations. My understanding is that the imputation model is supposed to include all information that is used in the later analysis including any ...
1
vote
2answers
39 views

Extracting numbers from String

Basic question... I've a string and I'm trying to extract the numbers from a string using the below. str2="<P>3.1 Design objectives ..... <Link>25 </Link> </P>" str2 ...
0
votes
0answers
13 views

printCoefmat with integer columns

Is there a way to use the printCoefmat function in R on a matrix which contains integer columns (between the estimates, p values etc.)? Right now, it always prints those columns with two digits, but I ...
0
votes
1answer
11 views

Change background color of tkplot (igraph,R)

I currently have a network plotted with tkplot(). Originally, I was saving these plots as pngs, but they were too compressed and I liked how a screen shot of the tkplot looked. Is there anyway to make ...
0
votes
2answers
27 views

Producing a new dataframe from an old dataframe?

I may be asking a stupid question but I am puzzled with this for some months, I want to produce a new datafram from an old big one (many variables) I use the cbind.data.frame function and it goes like ...
-1
votes
0answers
25 views

Drawing vectors unified by lines in R [on hold]

I have set of n-dimensional vectors which represents a tree (every vector it's a node in a tree, every node know its parent and it's childs). The thing it's that i want to draw it in R, but i just ...
-2
votes
1answer
27 views

Merge 2 data frames, discard unmatched rows

I have two data frames--one is huge (over 2 million rows) and one is smaller (around 300,000 rows). The smaller data frame is a subset of the larger one. The only difference is that the larger one ...
-1
votes
1answer
31 views

Can someone explain the Termstrc list to me? [on hold]

I can get a single set of information into the Termstrc list, but not multiple. I have always had a hard time with lists in R don't just does not make sense. Can someone explain the Termstrc list to ...
-1
votes
3answers
25 views

Weighted Mean by Date

I have the following dataframe: df = data.frame(date = c("26/06/2013", "26/06/2013", "26/06/2013", "27/06/2013", "27/06/2013", "27/06/2013", "28/06/2013", "28/06/2013", "28/06/2013"), return = ...
2
votes
1answer
14 views

New dataframe with difference between first and last values of repeated measurements?

I am working with time series data and want to calculate the difference between the first and final measurement times, and put these numbers into a new and simpler dataframe. For example, for this ...
-2
votes
1answer
16 views

R: Large dataframe: Need to sort all elements and then output with position info

I have a large (500 * 21000) dataframe consisting of numeric values. I would like some help in doing this task most efficiency: Essentially, I would like to sort the items in the dataframe, get an O/P ...
0
votes
2answers
31 views

Traverse multiple XML documents to find particular attributes using R

I have a series of several thousand URLs that link to prescription drug labels and am trying to figure out how many have a patient package insert. I am attempting to do this by reading in the URLs ...
0
votes
1answer
22 views

Calling two .Call (Rcpp) function in the same R session in MAC OSX

I am facing a strange problem. The program works fine on a linux machine but on a MAC OSX. The R program crashes. I have 2 R functions. They call two different C++ functions as follows. I call these R ...

1 2 3 4 5 2213
15 30 50 per page