Grokbase Groups R r-help May 2012
FAQ

Search Discussions

887 discussions - 3,067 posts

  • I have a data matrix with genes as columns and samples as rows. I want to create all possible gene ratios.Is there an elegant and fast way to do it in R and write it to a dataframe? Thanks for any ...
    Genome1976Genome1976
    May 11, 2012 at 7:39 pm
    Nov 26, 2012 at 1:40 pm
  • Hi all, I have a set of files (which is growing) in a folder. The files are text files... The form of files is such : ...with numbers for Length (m) going up to 2000 ... Anyway...i just need the data ...
    MpavlicMpavlic
    May 28, 2012 at 8:02 pm
    Jun 10, 2012 at 7:14 pm
  • Has anyone got any advice about what hardware to buy to run lots of R analysis? Links to studies or other documents would be great as would be personal opinion. We are not currently certain what ...
    Hugh MorganHugh Morgan
    May 8, 2012 at 10:49 am
    May 10, 2012 at 7:49 am
  • Hello. I'm trying to compute median for a filtered column based on other column but there was something wrong. I'll show how I did step by step. Here's the data: a b c class 1 12 0 90 A-B2 3 97 11 ...
    Suhaila Haji Mohd HussinSuhaila Haji Mohd Hussin
    May 7, 2012 at 6:52 pm
    May 14, 2012 at 11:21 am
  • Hello, All: The "writeFindFn2xls" function in the "sos" package tries to write an Excel file with 3 sheets ('PackageSum2', 'findFn', 'call'). Unfortunately, it is often unable to do this because of ...
    Spencer GravesSpencer Graves
    May 20, 2012 at 1:32 am
    May 23, 2012 at 7:57 pm
  • I had such good luck with my previous question to r-help, (a few minutes ago) that I thought I would try again with the following query: Then, just before clicking on "Send", I had one more thimk, ...
    Rolf TurnerRolf Turner
    May 19, 2012 at 5:18 am
    May 21, 2012 at 5:45 pm
  • I truncated and simplified my code and the read in data that I'm working with to isolate the issue. Here is the read in data and R script respectively ...
    KnaveroKnavero
    May 2, 2012 at 7:55 pm
    May 7, 2012 at 3:34 am
  • Kirtland Air Force Base has denied approval for the use of R on its Windows network. Some of their objections seem a bit strange, but some appear to be legitimate. In particular, they have detected ...
    Paul MartinPaul Martin
    May 8, 2012 at 3:10 pm
    Jun 5, 2012 at 6:58 pm
  • R-helpers: What would be the absolute fastest way to make a large "empty" file (e.g. filled with all zeroes) on disk, given a byte size and a given number number of empty values. I know I can use ...
    Jonathan GreenbergJonathan Greenberg
    May 2, 2012 at 10:23 pm
    Sep 28, 2012 at 7:33 pm
  • Hello, I'd like to remove the individual pairs of square brackets along with their content - plus the space directly behind it - from address strings such as this: [Swidsinski, Alexander ...
    Sabina ArndtSabina Arndt
    May 22, 2012 at 10:08 am
    May 29, 2012 at 9:11 pm
  • Hi all, I created a file to define some functions. When I try to source this file, sometimes it works but sometimes I get the following error: Error in srcfilecopy(filename, lines, ...
    Marta TolósMarta Tolós
    May 25, 2012 at 2:08 pm
    May 27, 2012 at 8:03 pm
  • I would like to organize my data as follows: I have a table that contains various data, and the numbers represent a level of similarity between these data, eg RF00013 has 100% similarity with the ...
    FjucksFjucks
    May 9, 2012 at 12:17 am
    May 11, 2012 at 6:15 am
  • I am the proud owner of a new laptop since my old one died the other day. Currently I have a dual-boot Windows 7 Home and Ubuntu 12.04 . I'll leave the Windows problems for another post. I know ...
    John KaneJohn Kane
    May 3, 2012 at 4:21 pm
    Sep 14, 2012 at 9:08 am
  • Hello folks, I've been on a journey trying to figure out how to manage documents that are amenable to sharing and editing, but that contain dynamic content generated by R. I've come to the following ...
    Alexander ShenkinAlexander Shenkin
    May 21, 2012 at 8:29 pm
    May 25, 2012 at 10:36 pm
  • Dear all, is there any function to assert whether a file path is legitimate, and to convert any potential file path to a legitimate file path? I automate a batch of files and write them to plain text ...
    WincentWincent
    May 9, 2012 at 8:03 am
    May 14, 2012 at 2:16 pm
  • Hi R user,I am struggling to figure out on how I can calculate the average from the two tables in R. Any one can help me? really your help would be grateful- I am spending so much time to figure it ...
    Kristi GloverKristi Glover
    May 10, 2012 at 3:50 pm
    May 11, 2012 at 6:03 am
  • I have a decent sized matrix (36 x 11,000) that I have preformed a PCA on with prcomp(), but due to the large number of variables I can't plot the result with biplot(). How else can I plot the PCA ...
    Christian ColeChristian Cole
    May 7, 2012 at 10:22 am
    May 8, 2012 at 1:02 pm
  • AdvisoRs: Is the following a bug, feature, hinky error message, or dumb Bert? [,1] [,2] [,3] [1,] 1 NA 9 [2,] 2 6 NA [3,] 3 7 11 [4,] 4 8 12 ## But ... Error in `[<-.data.frame`(`*tmp*`, ix, value = ...
    Bert GunterBert Gunter
    May 1, 2012 at 5:33 pm
    May 1, 2012 at 9:34 pm
  • Hi there I am new to R, and I was hoping you guys could help me out. I want to make a vector that is: vec(1,2,3,4,5,6,7,8,9,10) and i want to create a function called PercentileFinder, that if i plug ...
    Drew DuckettDrew Duckett
    May 2, 2012 at 11:42 pm
    May 30, 2012 at 2:16 pm
  • #If I have two lists as follows a1<- array(1:6, dim=c(2,3)) a2<- array(7:12, dim=c(2,3)) l1<- list(a1,a2) a3<- array(1:4, dim=c(2,2)) a4<- array(5:8, dim=c(2,2)) l2<- list(a3,a4) #how can I create a ...
    Hans ThompsonHans Thompson
    May 23, 2012 at 7:58 pm
    May 25, 2012 at 10:43 pm
  • Dear All, The code given bellow is to extract values of one region and write that to a text file(there are 365 binary files in the directory). The problem which I am facing is that all my files are ...
    JonssonJonsson
    May 24, 2012 at 3:51 pm
    May 25, 2012 at 5:15 pm
  • Hi, I have a 250,000 by 300 matrix. I am trying to calculate the median of those columns (by row) with column names that are identical. I would like this to be efficient since apply(x,1,median) where ...
    PreetiPreeti
    May 22, 2012 at 7:34 pm
    May 23, 2012 at 8:28 pm
  • I'm trying to read a binary file created by a fortran code using readBin and readChar. Everything reads fine (integers and strings) except for double precision numbers, they are read as huge or very ...
    Kapo coulibalyKapo coulibaly
    May 3, 2012 at 4:41 pm
    Jun 19, 2012 at 2:26 am
  • Hi, i have a question regarding the as.function functionality. I need to save multiple functions with adjusted parameters in a list. The adjusted parameters are changed via variables in a loop. The ...
    JacklJackl
    May 9, 2012 at 1:13 pm
    May 29, 2012 at 7:57 pm
  • Hello, I'm posting this again (with some small edits). I didn't get any replies last time...hoping for some this time. :) Currently I'm only coming up with brute force solutions to this issue ...
    Ben quantBen quant
    May 12, 2012 at 5:54 pm
    May 14, 2012 at 8:29 pm
  • I have two datasets, the first has this shape (each word is a column) Name address phone .. .. The second one has the following shape Name request I need a contingency table with for example phone ...
    LunarossaLunarossa
    May 4, 2012 at 12:23 pm
    May 12, 2012 at 4:21 pm
  • Hello R-Experts, I want to calculate values like 15^200 or 17^300 in R. In normal case it can calculate the small values of b (a^b). I have fixed width = 10000 and digits = 22 but still answers are ...
    Rehena SultanaRehena Sultana
    May 22, 2012 at 6:59 am
    Nov 21, 2012 at 9:33 pm
  • Hello R-Experts, I am facing the problem that I have to estimate several parameters for a lot of different dependent variables. One single regression looks something like this: y = beta0 + beta1 * x1 ...
    Chris87Chris87
    May 27, 2012 at 12:20 pm
    May 30, 2012 at 4:43 pm
  • Greetings I want to take a fitted regression and replace all uses of a variable in a formula. For example, I'd like to take m1 <- lm(y ~ x1, dataÚt) and replace x1 with something else, say x1c, so ...
    Paul JohnsonPaul Johnson
    May 29, 2012 at 3:43 pm
    May 29, 2012 at 7:56 pm
  • Hi, Here i have been a matrix like this, *NAME AGE PALCE TRUE/FALSE* ABC 20 INDIA XYZ 30 FRANCE PQR 40 USA MNO 30 KENIYA DEF 25 AUSTRALIA Here,* TRUE/FALSE* Column containing empty values. So my ...
    RantonyRantony
    May 25, 2012 at 1:43 pm
    May 29, 2012 at 2:08 pm
  • Dear R users I am struggling from a data importing issue: I have some hundreds of csv files needed to be read into R for futher analysis. All those csv files are named in one of the three formats ...
    HJ YANHJ YAN
    May 25, 2012 at 5:16 pm
    May 28, 2012 at 4:55 pm
  • Hi All, I have a query about time based sequences. I know such questions have been asked a lot on forums, but I couldnt find the exact thing that I was looking for. I want to create a time-based ...
    ShivamShivam
    May 25, 2012 at 5:14 pm
    May 28, 2012 at 12:30 am
  • Dear All I can not download R for Linux. I do not know which file I should install? Best Regards, Soheila
    Soheila KhodakarimSoheila Khodakarim
    May 23, 2012 at 9:00 am
    May 27, 2012 at 9:11 pm
  • Hi all, I'm trying to model some data where the y is defined by y = summation[1 to 50] B1 * x + B2 * x^2 + B3 * x^3 Hopefully that reads clearly for email. Anyway, if it wasn't for the summation, I ...
    Robbie EdwardsRobbie Edwards
    May 18, 2012 at 5:44 pm
    May 23, 2012 at 1:56 pm
  • Dear All, The function I wrote can run well with the small data, but with the large data, the function runs very very slowly. How can I correct it? Thank you very much. My function as below ...
    JiangxijixzyJiangxijixzy
    May 22, 2012 at 7:01 am
    May 23, 2012 at 7:30 am
  • Hello All: I'm still unable to get Rprofile.site to set, e.g., options(max.print"2), as I did with previous versions of R. I just found similar questions posed by Trevor Miles and Ross Bowden with ...
    Spencer GravesSpencer Graves
    May 4, 2012 at 4:07 am
    May 21, 2012 at 11:12 am
  • Dear Mr/Mrs, I have got the the data sets in the attachement (txt). The fact is that on applying the easy method for JoSAE package on these data sets I got the following error: Error in ...
    Ana-Maria DobreAna-Maria Dobre
    May 11, 2012 at 7:01 am
    May 17, 2012 at 6:50 pm
  • Given this example mean.values<-colMeans(VADeaths) mean.values<-apply(VADeaths, 2, mean) median.values<-apply(VADeaths, 2, median) dotchart(VADeaths, gdata=mean.values) dotchart(VADeaths, ...
    MaxbreMaxbre
    May 9, 2012 at 7:25 am
    May 10, 2012 at 1:31 pm
  • I have the following: Time A1 A1 B1 B1 C1 C2 x y x y x y 0 5 6 6 7 7 9 1 3 4 4 3 9 9 2 5 2 6 4 7 4 I want to change it to the following: 0 1 2 x y x y x y A1 5 6 3 4 5 2 B1 6 7 4 3 6 4 etc for a much ...
    Marc212Marc212
    May 4, 2012 at 2:36 am
    May 4, 2012 at 11:58 pm
  • Hi all, given this example #start a<-c(0,70,50,100,70,650,1300,6900,1780,4930,1120,700,190,940, 760,100,300,36270,5610,249680,1760,4040,164890,17230,75140,1870,22380,5890,2430) length(a) ...
    MaxbreMaxbre
    May 26, 2012 at 1:33 pm
    Oct 5, 2012 at 2:54 pm
  • Dear useRs, I am using mgcv version 1.7-16. When I create a model with a few non-linear terms and a random intercept for (in my case) country using s(Country,bs="re"), the representative line in my ...
    Martijn WielingMartijn Wieling
    May 8, 2012 at 2:01 pm
    Jul 19, 2012 at 9:23 am
  • Hi everyone, I am using the fastgreedy.community function to get the $merges matrix and the $modularity vector. This serves my purpose of testing modularity of my graph. But I am "greedy" to plot the ...
    Aziz, Muhammad FayezAziz, Muhammad Fayez
    May 29, 2012 at 5:16 am
    Jun 5, 2012 at 5:53 pm
  • Hi, I am extremely new to R, and was wondering if someone would be able to help me with a question regarding the expand.grid function. When I input expand.grid.rep <- function(x, n=1) ...
    Kelly CoolKelly Cool
    May 1, 2012 at 9:05 am
    May 29, 2012 at 7:18 pm
  • Hi I am trying to create n functions where each function is defined in function one step before, i.e. something like ff.k(x) = ff.j(x) - sum(1:j), for j=k-1 Is it possible? If it isn't and I manually ...
    Etienne Larrivée-HardyEtienne Larrivée-Hardy
    May 22, 2012 at 2:06 pm
    May 25, 2012 at 8:45 pm
  • Hi, I have a 64 bits machine (Windows) with a total of 192GB of physical memory (RAM), and total of 8 CPU. I wanted to ask how can I make R make use of all the memory. I recently ran a script ...
    Emiliano ZapataEmiliano Zapata
    May 20, 2012 at 4:09 pm
    May 23, 2012 at 2:57 am
  • Dear All, This question sounds very simple but I don't know where I am wrong. I just want to pad leading zeros in some string, for example, "123" becomes "00123". What is wrong if I do following? [1] ...
    Hui DuHui Du
    May 22, 2012 at 6:41 pm
    May 22, 2012 at 9:20 pm
  • Hi all, I am a beginner R user and need some help with a simple loop function. Currently, I have seven datasets (TOWER1,TOWER2...TOWER7) that are all in the same format (same # of col and headers). I ...
    BdossmanBdossman
    May 18, 2012 at 11:14 pm
    May 21, 2012 at 5:38 pm
  • I have some square matrices with na values in corresponding rows and columns. M<-matrix(1:2,10,10) M[6,1:2]<-NA M[10,9]<-NA M<-as.matrix(as.dist(M)) print (M) 1 2 3 4 5 6 7 8 9 10 1 0 2 1 2 1 NA 1 2 ...
    Nevil AmosNevil Amos
    May 20, 2012 at 2:17 pm
    May 21, 2012 at 1:31 pm
  • Hi! Any one knows how to obtain critical values for the k-s statistic, using R? Thanks, Alex -- View this message in context ...
    AramosAramos
    May 16, 2012 at 1:52 pm
    May 17, 2012 at 2:10 pm
  • I am trying to write data to csv but I am having issues with the separations. Basically I have some results that I get with R that I copied and pasted into word and then saved as .txt I want to write ...
    DLDL
    May 12, 2012 at 8:33 pm
    May 14, 2012 at 4:11 pm
Group Navigation
period‹ prev | May 2012 | next ›
Group Overview
groupr-help @
categoriesr
discussions887
posts3,067
users791
websiter-project.org
irc#r

791 users for May 2012

R. Michael Weylandt: 162 posts Ruipbarradas: 123 posts David Winsemius: 122 posts Uwe Ligges: 65 posts Bert Gunter: 57 posts Sarah Goslee: 52 posts Jeff Newmiller: 51 posts Duncan Murdoch: 48 posts Gabor Grothendieck: 42 posts Peter dalgaard: 40 posts Jim Holtman: 35 posts John Kane: 35 posts Arun: 34 posts Joshua Wiley: 31 posts David L Carlson: 29 posts Petr Savicky: 28 posts Jim Lemon: 27 posts Petr PIKAL: 27 posts William Dunlap: 24 posts Peter Ehlers: 20 posts
show more
Archives