Grokbase Groups R r-help August 2012
FAQ

Search Discussions

696 discussions - 2,744 posts

  • Hello all, How do I actually use the output of predict.lm(..., type="terms") to predict new term values from new response values? I'm a chromatographer trying to use R (2.15.1) for one of the most ...
    John ThadenJohn Thaden
    Aug 28, 2012 at 10:30 pm
    Sep 2, 2012 at 6:25 pm
  • Hi R-Helpers, I don't think I need to post a dataset for this question but if I do, I can. Anyway, I am having a lot of trouble with the ifelse command. Here is my code: vn$PM.DIST_flag <- ifelse( ...
    Jennifer SabatierJennifer Sabatier
    Aug 24, 2012 at 8:22 pm
    Aug 25, 2012 at 2:35 am
  • Dear all I'm pretty sure that I'm approaching the problem in a wrong way. Suppose the following character vector: [1] "a10" "b7" "c2" "d3" "e6" "f1" "g5" "h8" "i9" "j4" "k" "l" "m" "n" [15] "o" "p" ...
    Liviu AndronicLiviu Andronic
    Aug 6, 2012 at 4:25 pm
    Aug 8, 2012 at 8:56 am
  • Hello. Please forgive me if this problem has already been posted (and solved) by someone else ... I can't find it anywhere though it seems so very basic. Here it is: I have a list comprised of ...
    GailGail
    Aug 1, 2012 at 1:43 pm
    Aug 3, 2012 at 7:14 am
  • Hi all, I want to do the following: data<-data.frame(col1=c(1,2,3,4,5)) getcol2<-function(data){ data$col2[data$col1<=2]="L" } getcol2(data) Unfortunately in the above col2 does not appear in the ...
    Sachinthaka AbeywardanaSachinthaka Abeywardana
    Aug 14, 2012 at 1:08 am
    Aug 15, 2012 at 10:37 am
  • At the end of a for loop its variables are still present: for (i in 1:10) { x <- vector(length0000000) } ls() will print "i" and "x". this means that at the end of the for loop body I have to write ...
    Sam SteingoldSam Steingold
    Aug 28, 2012 at 6:29 pm
    Aug 29, 2012 at 7:09 pm
  • Is there a way for an apply-type function to return a data frame? the closest thing I think of is foo <- as.data.frame(sapply(...)) names(foo) <- c(....) is there a more "elegant" way? Thanks! -- Sam ...
    Sam SteingoldSam Steingold
    Aug 30, 2012 at 12:56 pm
    Aug 31, 2012 at 8:03 pm
  • Folks: Over the years, many people -- including some who I would consider real expeRts -- have criticized factors and advocated the use (sometimes exclusively) of character vectors instead. I would ...
    Bert GunterBert Gunter
    Aug 17, 2012 at 5:32 pm
    Aug 20, 2012 at 3:41 pm
  • Hi, I have built two R packages. One of them (PKG1) needs to use the functions of the other package (PKG2). So I need to link these two packages together, so that the functions of PKG2 can be ...
    Xuan zhaoXuan zhao
    Aug 1, 2012 at 10:27 pm
    Aug 2, 2012 at 2:57 pm
  • Hi I want to do a series of linear models, and would like to define the input arguments for lm() as variables. I managed easily to define the formula arguments in a variable, but I also would like to ...
    Rainer M KrugRainer M Krug
    Aug 21, 2012 at 2:44 pm
    Aug 29, 2012 at 1:50 pm
  • summary: I can successfully ncvar_put(...) data to a file, but when I try to ncvar_get(...) the same data, I get How to fix or debug? details: R code @ https://github.com/TomRoche/GEIA_to_NetCDF ...
    Tom RocheTom Roche
    Aug 28, 2012 at 3:31 am
    Aug 29, 2012 at 2:44 am
  • 0 1 5194394 23487 $ cut -d' ' -f1 f | sort | uniq -c 23487 2 5194394 1 i.e., 0 is written as 1 and 1 is written as 2. why? is there a way to disable this? -- Sam Steingold (http://sds.podval.org/) on ...
    Sam SteingoldSam Steingold
    Aug 27, 2012 at 6:47 pm
    Nov 6, 2012 at 8:21 pm
  • My intention is to give a presentation about R programming language for software developers. I would like to ask, what are the things that make R different from other programming languages? What are ...
    Johannes raraJohannes rara
    Aug 20, 2012 at 6:02 pm
    Aug 22, 2012 at 8:46 pm
  • Dear R-help ? would like to know if there is a short solution in R for this merging problem... Let say I have a dataset A as: TYPE DATE A 2 A 5 A 20 B 10 B 2 (there can be duplicates for the same ...
    FrancescoFrancesco
    Aug 19, 2012 at 10:10 am
    Aug 20, 2012 at 11:37 am
  • Hi, Here i have a file path, for eg : - FPath <- "D:\\MyFolder\\MyFile.txt" HOW IS POSSIBLE TO GET THE FILE NAME FROM THIS GIVEN PATH ? - thanks in advance Antony. -- View this message in context ...
    RantonyRantony
    Aug 17, 2012 at 9:28 am
    Aug 18, 2012 at 1:45 pm
  • Dear all, I had a R segmentation fault, and then invoked debug mode and ran step by step. When I reached "terms(Y~X1*X2*...*X16)", I would then have "segmentation" fault. However, if I just ran this ...
    Zhang, PengZhang, Peng
    Aug 9, 2012 at 11:56 pm
    Aug 10, 2012 at 8:15 pm
  • I'm still not fully understanding exactly how R is handling data frames, but am getting closer. Any help with this one will likely go a long way in getting me there. Let's say I have a data frame, ...
    Jimi adamsJimi adams
    Aug 9, 2012 at 8:42 pm
    Aug 10, 2012 at 1:17 pm
  • I need to understand how and why dcast() adds NAs to a data frame that contained no missing values. The database table of chemical concentrations has all missing values removed because they cannot ...
    Rich ShepardRich Shepard
    Aug 7, 2012 at 9:45 pm
    Aug 9, 2012 at 1:26 pm
  • I'm trying to install and run the "Conjoint" package, and I get the error: Error: could not find function "caFactorialDesign" I'm running R 2.15.1 on Mac OS X. I have installed the package "Conjoint" ...
    VikRVikR
    Aug 3, 2012 at 5:10 pm
    Aug 7, 2012 at 2:53 am
  • Hi, Here is my data, the first 10 rows structure(c(999, 999, 999, 999, 999, 999, 999, 999, 999, 999, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 1.9, 2, 1.97, ...
    Yolande TraYolande Tra
    Aug 3, 2012 at 7:49 pm
    Aug 3, 2012 at 9:26 pm
  • Hi, I want to plot ROC curve for my detection algorithm which detects features in different images at two different thresholds. 6 different images used and obtained tp, fp and fn. No tn in my case ...
    VjynsVjyns
    Aug 16, 2012 at 9:51 am
    Aug 30, 2012 at 9:10 am
  • Dear all, Please suggest me how can I do it. I have a matrix which look like following: x1 x2 x3 t1 .01 0.3 0 t2 0 0.1 0.01 t3 0 .01 .01 t4 0 0 t5 5 0 0 t6 0 0 0 t7 0 0 0 t8 0 0 0 t9 0.6 0 0 t10 0 0 ...
    Nico MetNico Met
    Aug 29, 2012 at 1:24 pm
    Aug 29, 2012 at 3:56 pm
  • Hi, Here i have a variable named "MyVariable" containing particular name For eg:- MyVariable <- "UnitNo" Here my requirement is, i need to get "UnitNo" as another variable by reading "MyVariable" i ...
    RantonyRantony
    Aug 28, 2012 at 6:48 am
    Aug 28, 2012 at 4:50 pm
  • Hi, I have a table in which one column has the name of the objects as shown below. Name Budlamp-Woodcutter Complex - 15 to 60% slope (60/25/15) Budlamp-Woodcutter Complex - 15 to 60% slope (60/25/15) ...
    Sapana LohaniSapana Lohani
    Aug 16, 2012 at 6:41 pm
    Aug 17, 2012 at 5:07 pm
  • hi, i'm trying to understand r data structures. i see that vectors, matrix, factors and arrays have a "dimension." there seems to be no mention of dimensionality anywhere for lists or dataframes. can ...
    Schumacher, Jay SSchumacher, Jay S
    Aug 16, 2012 at 6:49 pm
    Aug 17, 2012 at 7:38 am
  • Friends I'm not seeing why the following occurs: [1] FALSE Harold new("dsCMatrix" , i = c(0L, 1L, 2L, 3L, 0L, 1L, 4L, 2L, 3L, 5L) , p = c(0L, 1L, 2L, 3L, 4L, 7L, 10L) , Dim = c(6L, 6L) , Dimnames = ...
    Doran, HaroldDoran, Harold
    Aug 14, 2012 at 5:25 pm
    Aug 16, 2012 at 12:37 pm
  • Hi all, It seems like I cannot use normal 'if' for data frames. What would be the best way to do the following. if data$col1='high' data$col2='H' else if data$col1='Neutral' data$col2='N' else if ...
    Sachinthaka AbeywardanaSachinthaka Abeywardana
    Aug 13, 2012 at 12:43 am
    Aug 14, 2012 at 9:47 am
  • I have a long numeric vector v (length N) and I want create a shorter vector of length N/k consisting of sums of k-subsequences of v: v <- c(1,2,3,4,5,6,7,8,9,10) N, k=3 === [6,15,24,10] I can, of ...
    Sam SteingoldSam Steingold
    Aug 10, 2012 at 7:20 pm
    Aug 10, 2012 at 11:34 pm
  • I am porting a program in matlab to R, The problem is that Matlab has a feature where symbols that aren't arguments are evaluated immediately. That is: Y=3 F=@(x) x*Y Will yield a function such that ...
    Schoenfeld, David Alan,Ph.D.,BiostatisticsSchoenfeld, David Alan,Ph.D.,Biostatistics
    Aug 6, 2012 at 9:07 pm
    Aug 7, 2012 at 7:50 pm
  • My apologies, I know that this is not a new problem, but I'm not sure how to find the answer I want to recursively loop over an object and trim trailing white space. When I use this function on a ...
    Gene LeynesGene Leynes
    Aug 3, 2012 at 4:12 pm
    Aug 3, 2012 at 10:46 pm
  • Dear all Are LaTeX \subfloat{} commands incompatible with Sweave code? I cannot get the following code to compile properly: \begin{table} \subfloat[asdfa]{<< = 2+2 @ } \caption{asdf} \end{table} If I ...
    Liviu AndronicLiviu Andronic
    Aug 29, 2012 at 10:56 am
    Aug 31, 2012 at 4:14 pm
  • Hi, My data.frame "A" has FID like this FID a a b b b c c d d d d Now my second data.frame "B" has age value for a, b, c, d like FID Age a 5 b 7 c 9 d 3 How can search for the Age column in "B" and ...
    Sapana LohaniSapana Lohani
    Aug 20, 2012 at 12:56 am
    Aug 22, 2012 at 4:30 am
  • Hi all, Is it possible to get the latitude and longitude of the location of a tweet? If I do tweets<- searchTwitter("#obama", n=200) #get tweets df <- twListToDF(tweets) #converts to data frame for ...
    Sachinthaka AbeywardanaSachinthaka Abeywardana
    Aug 14, 2012 at 11:06 pm
    Aug 16, 2012 at 11:45 am
  • My friend sent an Excel file: http://msemac.redwoods.edu/~darnold/temp/cyu01_iqscores.xls http://msemac.redwoods.edu/~darnold/temp/cyu01_iqscores.xls I opened it in Excel, saved is as ...
    DarnoldDarnold
    Aug 15, 2012 at 5:27 pm
    Aug 16, 2012 at 5:04 am
  • Hi, I want to simulate a data set with similar covariance structure as my observed data, and have calculated a covariance matrix (dimensions 8368*8368). So far I've tried two approaches to simulating ...
    Boel BrynedalBoel Brynedal
    Aug 11, 2012 at 2:17 pm
    Aug 13, 2012 at 5:14 pm
  • Good morning reader, I have encountered a, probably, simple issue with respect to the *formulae* of a *regression model* I want to use in my research. I�m researching alliances as part of my study ...
    Johan HaasnootJohan Haasnoot
    Aug 10, 2012 at 7:14 am
    Aug 13, 2012 at 1:17 am
  • Hi, My error isErro em hist.default(dados[[1]], freq = TRUE, seq(0, 30, 0.5), prob = FALSE, : some 'x' not counted; maybe 'breaks' do not span range of 'x' hist(dados[[1]],seq(0, 30, 0.5), prob=TRUE, ...
    Aprendiz programaAprendiz programa
    Aug 10, 2012 at 12:36 am
    Aug 10, 2012 at 6:07 pm
  • Some chemicals have concentrations at or below the method detection limit (MDL; 'less-thans') of 0.005 mg/L. When I look at the data frame that is how the concentration is displayed. But, when I ask ...
    Rich ShepardRich Shepard
    Aug 7, 2012 at 5:50 pm
    Aug 9, 2012 at 9:02 pm
  • HI [1] 64.90614 thank you in advance hafida -- View this message in context: http://r.789695.n4.nabble.com/Decimal-number-tp4639428.html Sent from the R help mailing list archive at Nabble.com.
    HafidaHafida
    Aug 7, 2012 at 4:47 pm
    Aug 8, 2012 at 7:53 am
  • Hi, Reading about a "Heads and Tails" game in http://www.dartmouth.edu/~chance/teaching_aids/books_articles/probability_book/amsbook.mac.pdf Introduction to Probability (Example 1.4, pp. 5-8). You ...
    DarnoldDarnold
    Aug 4, 2012 at 12:55 am
    Aug 6, 2012 at 6:20 am
  • Hi all, I have two vectors (columns) called "efinal" and "efinal 2". I want to plot them on the same plot and "draw" a shaded area beween the two lines using function polygon I have tried all but I ...
    Jose Narillos de SantosJose Narillos de Santos
    Aug 2, 2012 at 12:33 pm
    Aug 2, 2012 at 11:18 pm
  • Hi, A column of my df looks like A 10/20/30 40/20 60/10/10/5 80/10 I want to split it such that the last column has the last composition and if there are not enough the middle columns get the 0s ...
    Sapana LohaniSapana Lohani
    Aug 31, 2012 at 4:10 pm
    Sep 3, 2012 at 1:49 am
  • HI, I have this code: BAGA <- c(10,20,20,30,30,30,30,40, 40,40,40,50,50,50,50,50, 60,60,60,60,60,70,70,70, 70,80,80,80,90,90,100) BAGB <- c(10,10,10,10,10,20,20,20, 20,30,30,30,40,40,50,60, ...
    DarnoldDarnold
    Aug 25, 2012 at 4:15 am
    Aug 27, 2012 at 8:32 pm
  • Hello, I'm hoping someone with a wide experience with R may be able to see what the program is trying to tell me. I've got an array: y1=rnorm(41,0.2) y2=rnorm(41,0.2) y3=rbind(y1,y2) ...
    Aleksandr russellAleksandr russell
    Aug 13, 2012 at 9:10 am
    Aug 27, 2012 at 6:10 pm
  • Hi, Â My name is Eva and this is my first message here. My English is not very good, but I hope you can understand my question, in the context of an academic project. Â I have developed several ...
    Eva Prieto CastroEva Prieto Castro
    Aug 7, 2012 at 7:09 am
    Aug 17, 2012 at 8:20 am
  • Is it possible to fill the boxes of a boxplot with filling patterns/texture instead of colours? Or both mixed? (for example white, grey, left diagonal striped, right diagonal striped) How can I do ...
    SuseSuse
    Aug 8, 2012 at 11:56 pm
    Aug 12, 2012 at 3:45 am
  • HI, You can also try this: d<-1:25 A<-sample(combn(20:30,2)) B<-sample(combn(20:30,2)) lapply(d,function(x) matrix(c(1,A[x],B[x],1),2,2)) [[1]] [,1] [,2] [1,] 1 23 [2,] 27 1 [[2]] [,1] [,2] [1,] 1 21 ...
    arun kirshna [via R]arun kirshna [via R]
    Aug 2, 2012 at 3:34 am
    Aug 9, 2012 at 8:22 pm
  • Dear R community, I have been spending hours to solve my problem myself but I'm just unable to do it. So excuse me if I demand your time. My problem is, that inside my function, I want to pass ...
    Greatest.possible.newbieGreatest.possible.newbie
    Aug 8, 2012 at 12:44 pm
    Aug 9, 2012 at 6:27 pm
  • hello, this is my script: #1) read in data: daten<-read.table('K:/Analysen/STRUCTURE/input_STRUCTURE_tab_excl_5_282_559.txt', header=TRUE, sep="\t") daten<-as.matrix(daten) #2) create empty matrix ...
    FridolinFridolin
    Aug 8, 2012 at 2:06 pm
    Aug 9, 2012 at 12:46 pm
  • The sample data sets that come with the NADA package are limited to one or two variables and a censored measurement indicator column. I try to mimic examples using my data but keep missing the ...
    Rich ShepardRich Shepard
    Aug 7, 2012 at 4:26 pm
    Aug 9, 2012 at 8:15 am
Group Navigation
period‹ prev | Aug 2012 | next ›
Group Overview
groupr-help @
categoriesr
discussions696
posts2,744
users693
websiter-project.org
irc#r

693 users for August 2012

R. Michael Weylandt: 182 posts Arun: 136 posts David Winsemius: 131 posts Rui Barradas: 119 posts Bert Gunter: 77 posts David L Carlson: 47 posts John Kane: 47 posts PIKAL Petr: 45 posts William Dunlap: 44 posts Uwe Ligges: 40 posts Jeff Newmiller: 34 posts Peter dalgaard: 29 posts Rich Shepard: 29 posts Duncan Murdoch: 27 posts S Ellison: 25 posts Sam Steingold: 23 posts Jessica Streicher: 22 posts Berend Hasselman: 21 posts Liviu Andronic: 21 posts Peter Ehlers: 21 posts
show more
Archives