Grokbase Groups R r-help May 2011

Search Discussions

846 discussions - 2,976 posts

  • Dear all, I am having a strage problem while I was trying to build a package. Here is my package skeleton: fn1 <- Vectorize(function(x,y,z) { return(x + y +z) }, vectorize.args = c("x"), SIMPLIFY = ...
    Nipesh BajajNipesh Bajaj
    May 31, 2011 at 7:36 pm
    Jun 4, 2011 at 12:23 am
  • Dear R helpers, I have one basic doubt about the value of pi. In school, we have learned that pi = 22/7 (which is = 3.142857). However, if I type pi in R, I get pi = 3.141593. So which value of pi ...
    Vincy PyneVincy Pyne
    May 30, 2011 at 6:01 am
    Jun 4, 2011 at 10:38 am
  • Dear R-help, I am trying to reproduce some results presented in a paper by Anderson and Blundell in 1982 in Econometrica using R. The estimation I want to reproduce concerns maximum likelihood ...
    Alex OlssenAlex Olssen
    May 6, 2011 at 12:29 pm
    May 22, 2011 at 3:42 pm
  • I am struggling to generate p values for comparisons of levels (post-hoc tests) in a glm with a negative binomial distribution I am trying to compare cell counts on different days as grown on ...
    May 16, 2011 at 5:46 pm
    May 19, 2011 at 11:11 pm
  • Thanks Bill. Do you and others think that a link to this guide (or another)should be included in the Posting Guide and/or R FAQ? -- Bert -- "Men by nature long to get on to the ultimate truths, and ...
    Bert GunterBert Gunter
    May 18, 2011 at 1:47 pm
    May 23, 2011 at 2:41 pm
  • Dear list, We have three time course profiles with very different scales, and we want to show them in one plot. Is it possible to have three y axis? I guess not, then what would be other options? ...
    Jun ShenJun Shen
    May 26, 2011 at 3:35 pm
    May 27, 2011 at 7:25 pm
  • Hi R list, I'm new to R software, so I'd like to ask about it is capabilities. What I'm looking to do is to run some statistical tests on quite big tables which are aggregated quotes from a market ...
    Roman NaumenkoRoman Naumenko
    May 25, 2011 at 4:29 am
    May 25, 2011 at 7:24 pm
  • I am plotting 28 plots on one screen: par(mfrow=c(4,7)) for (i in 1:28) { a<-seq(1,3,1) plot(a,a, annúLSE) } I want a main title for all the plots (I tried using main but that doesn't work). I ...
    May 13, 2011 at 8:13 pm
    May 22, 2011 at 12:41 pm
  • Hi there, I am reletively new user I only dowloaded is about a week ago. I was getting along fine but last night I tried to selected save workspace. Since then R will not work!!!! And I really really ...
    May 12, 2011 at 9:09 am
    May 14, 2011 at 2:51 am
  • Dear R-helpers, In my dataset I have two continuous variable (A and B) and one factor. I'm investigating the regression between the two variables usign the command lm(A ~ B, ...) but now I want to ...
    Francesco NutiniFrancesco Nutini
    May 20, 2011 at 9:17 am
    May 23, 2011 at 10:31 am
  • Hi, If I load 2 packages that have a function with the same name, how do I tell R to run one or the other? (Instead of having R automatically use the first- or last-loaded one, whichever it is ...
    Nick MatzkeNick Matzke
    May 19, 2011 at 2:02 am
    May 21, 2011 at 3:08 am
  • the original data are V2 =c(371000,285000 ,156000, 20600, 4420, 3870, 5500 ) T2=c( 0.3403 ,0.4181 ,0.4986 ,0.7451 ,1.0069 ,1.553) ...
    May 4, 2011 at 4:08 am
    May 8, 2011 at 11:52 pm
  • Hello everybody, I am beginning with loops and functions and would be glad to have help in the following question: If i have a dataframe like this Site Prof H 1 1 24 1 1 16 1 1 67 1 2 23 1 2 56 1 2 ...
    May 3, 2011 at 3:44 pm
    May 7, 2011 at 4:56 pm
  • Hi all, I found that the two different versions of "survival" packages, namely 2.36-5 vs. 2.36-8 or later, give different results for coxph function. Please see below and the data is attached. The ...
    Shi, TaoShi, Tao
    May 11, 2011 at 11:11 pm
    May 20, 2011 at 5:23 pm
  • Dear all, I'm currently running R on my laptop -- a Lenovo Thinkpad X201 (Intel Core i7 CPU, M620, 2.67 Ghz, 8 GB RAM). The problem is that some of my calculations run for several days sometimes even ...
    Michael HaenleinMichael Haenlein
    May 13, 2011 at 10:38 am
    May 16, 2011 at 7:29 am
  • Hi all! I'm getting a model fit from glm() (a binary logistic regression fit, but I don't think that's important) for a formula that contains powers of the explanatory variable up to fourth. So the ...
    Ben HallerBen Haller
    May 6, 2011 at 3:35 pm
    May 8, 2011 at 2:02 pm
  • Hi there, I ran the following code: vols=read.csv(file="C:/Documents and Settings/Hugh/My Documents/PhD/Swaption vols.csv" , header=TRUE, sep=",") X<-ts(vols[,2]) #X ...
    May 23, 2011 at 9:32 pm
    May 31, 2011 at 4:47 pm
  • Hi Everyone, This may be a dumb question, but I can't seem to figure it out. I have 32 and 64 bit versions of R installed on my machine, and I'd really like the 64-bit version to be the default ...
    Josh BrowningJosh Browning
    May 24, 2011 at 3:03 pm
    May 28, 2011 at 9:18 am
  • I am looking to build simple GUIs based on the R codes I have. The main objective is to hide the scary R codes from non-programming people and make it easier for them to try out different inputs. For ...
    May 20, 2011 at 6:52 am
    May 20, 2011 at 9:04 pm
  • I use the following code to create two data.frames d1 and d2 from a list: types <- c("integer", "character", "double") nlines <- 10 d1 <-,, list(nlines)), ...
    Jan van der LaanJan van der Laan
    May 15, 2011 at 11:25 am
    May 16, 2011 at 10:00 am
  • Hi, I'm trying to upload two CSV files into R, and I'm having some trouble. I've used the instructions I've found on the Web, but they haven't helped so far. I'm worried this could be because I'm ...
    May 11, 2011 at 4:54 pm
    May 14, 2011 at 2:14 pm
  • I'm running an ANOVA on some data for respiration in a forest. I am having a problem with my degrees of freedom. For one of my variables I get one fewer degrees of freedom than I should. I have 12 ...
    May 3, 2011 at 7:37 pm
    May 11, 2011 at 2:17 pm
  • Hi all, I thought I would post code to send an email out of R. The code uses Grothendieck and Bellosta's interface package rJython for executing Python from R. The code itself provides basic email ...
    Daniel MalterDaniel Malter
    May 17, 2011 at 8:44 pm
    Oct 29, 2011 at 3:37 pm
  • Dear List, I am currently running R-2.10.1. I wish to install R-2.13.0 or update my R-2.10.1 to the R-2.13.0. I have downloaded R-2.13.0 but wish to seek your advice before installing that. Please is ...
    Ogbos okikeOgbos okike
    May 26, 2011 at 10:02 am
    May 30, 2011 at 12:29 pm
  • Hi there, I need a network builder and it can change the node size and color; I am not sure if network package in R can do this or not. The other functions I wanted have been found in that package ...
    Weiwei ShiWeiwei Shi
    May 27, 2011 at 9:32 pm
    May 28, 2011 at 6:17 pm
  • Hi Everyone, I am trying to work with a routine that is from the IMSL called BSVLS. I have the file as a .dll file. I have been trying to call the routine using the dyn.load function. I am working on ...
    Sivan aldorSivan aldor
    May 26, 2011 at 8:53 pm
    May 27, 2011 at 1:16 pm
  • I'm a French developer (so I am sorry if my english is not perfect). I have a problem to smooth the contours of a map. I have a dataset with 3 columns, x, y and z, where x and y are the coordinates ...
    Pierre BruyerPierre Bruyer
    May 17, 2011 at 9:58 am
    May 18, 2011 at 3:59 pm
  • Hello, how can one merge two data frames when in the second data frame one column defines the start values and another defines the end value of the to be merged range. data.frame.1 time ... 13 24 35 ...
    René MayerRené Mayer
    May 14, 2011 at 12:12 pm
    May 15, 2011 at 9:41 pm
  • Greetings R world, I know some version of the this question has been asked before, but i need to save the output of a loop into a data frame to eventually be written to a postgres data base with ...
    John DennisonJohn Dennison
    May 12, 2011 at 4:33 pm
    May 13, 2011 at 2:54 pm
  • Hi all R users I did a logistic regression with my binary variable Y (0/1) and 2 explanatory variables. Now I try to draw my nomogram with predictive value. I visited the help of R but I have problem ...
    May 5, 2011 at 11:51 am
    May 10, 2011 at 12:56 pm
  • I'm having troubles with the names of columns. quantmod deal with stock quotes. I've created an array of the first 5 closing prices from Jan 2007. (Is there a problem that the name is the same as the ...
    Russ AbbottRuss Abbott
    May 8, 2011 at 7:07 pm
    May 9, 2011 at 4:54 am
  • I still need to do some repetitive statistical analysis on some outcomes from a dataset. Take the following as an example; id sex hiv age famsize bmi resprate 1 M Pos 23 2 16 15 2 F Neg 24 5 18 14 3 ...
    May 5, 2011 at 10:16 am
    May 6, 2011 at 7:11 am
  • The R "cut" command is entirely different from the UNIX "cut" command. The latter retains selected fields in a line of text. I can do that kind of manipulation using sub() or gsub(), but it is ...
    Mike MillerMike Miller
    May 2, 2011 at 8:53 pm
    May 3, 2011 at 8:03 am
  • I want to use caret to build a model with an algorithm that actually has no parameters to find. How do I stop it from repeatedly building the same model 25 times? library(caret) data(mdrr) ...
    May 1, 2011 at 9:57 pm
    May 2, 2011 at 10:51 am
  • Dear R-experts---is there a relatively low-pain way to get unicode characters into a plot to a pdf device? pdf(file="cardsymbols.pdf") plot( 0, xlim=c(0,5), ylim=c(0,5), type="n") text(1,1, ...
    Ivo welchIvo welch
    May 15, 2011 at 1:06 pm
    Jul 5, 2011 at 12:34 am
  • Hi all, I am trying to compile Rgraphiz on Windows 7 64bit with R-2.13.0. I have installed Rtools213.exe from [1]. The 64bit packages in [2] provided me with the 64 bit version of graphviz. After ...
    Ben RhelpBen Rhelp
    May 3, 2011 at 10:23 pm
    May 28, 2011 at 1:27 pm
  • Hi, I want to recode all Inf and NaN values to NA, but I;m surprised to see the result of the following code. Could anybody enlighten me about this? a 1 NA 2 NaN 3 Inf 4 1 5 2 6 3 Thanks! Cheers!! ...
    Albert-Jan RoskamAlbert-Jan Roskam
    May 26, 2011 at 8:18 pm
    May 27, 2011 at 3:18 pm
  • Okay everyone heres a likely softball for someone. Consider the following data frame: #Create data x<-rep(c(1,15),10) y<-rnorm(20) z<-c(rep("auto",10),rep("bus",10)) a<-rep(c(1,1,2,2,3,3,4,4,5,5),2) ...
    May 17, 2011 at 4:48 pm
    May 17, 2011 at 8:11 pm
  • Hi, I have a mysql table with fields userid,track,frequency e.g u1,1,10 u1,2,100 u1,3,110 u1,4,200 u1,5,120 u1,6,130 . u2,1,23 . . where "frequency" is the number of times a music track is played by ...
    May 8, 2011 at 6:48 pm
    May 15, 2011 at 2:54 am
  • Clearly, I don't understand what order() is doing and as ususl the help for order seems to only confuse me more. For some reason I just don't follow the examples there. I must be missing something ...
    John KaneJohn Kane
    May 12, 2011 at 12:32 pm
    May 12, 2011 at 3:38 pm
  • Hi, I have some random data and i want to find out the parameters of Beta distribution ( a and b) such that this data approximately fits into this distribution. I have tried by plot the histograms ...
    May 3, 2011 at 11:44 am
    May 12, 2011 at 11:32 am
  • Dear list, I used read.xls to read in an excel file, which has both character and numeric columns. Everything seems fine except in the last column, I have this character value "ng/ml". When reading ...
    Jun ShenJun Shen
    May 10, 2011 at 3:44 am
    May 10, 2011 at 4:02 pm
  • I have a new device that takes measurements anywhere from every second, to every 15 minutes (depending on changes). The matrix has a date, time and Y column (Y is the measurement). For three days it ...
    May 5, 2011 at 8:04 pm
    May 9, 2011 at 8:41 pm
  • Hi! This is my first time posting. I've read the general rules and guidelines, but please bear with me if I make some fatal error in posting. Anyway, I have a continuous response and 29 predictors ...
    Clemontina AlexanderClemontina Alexander
    May 2, 2011 at 4:45 pm
    May 3, 2011 at 1:45 pm
  • Hi, I perform latent class analysis on a matrix of dichotomous variables to create an indicator of class/category membership for each observation. I would like to know whether there is a function ...
    Daniel MalterDaniel Malter
    May 23, 2011 at 9:21 pm
    Jul 13, 2011 at 6:03 pm
  • Hello R gurus, I have a data set from which i have to extract the gender and age matched rows from controls and disease group disease<-paste(rep(c('y','n'),11)) gender<-paste(rep(c('m','f'),11)) ...
    May 26, 2011 at 3:19 pm
    Jun 17, 2011 at 12:47 pm
  • Hey all, I can't seem to get the princurve package to produce correct results, even in the simplest cases. For example, if you just generate a 1 period noiseless sine wave, and ask for the principal ...
    May 19, 2011 at 1:43 pm
    Jun 8, 2011 at 1:15 am
  • Greetings - I'm battling POSIXct, as per the code below. My input is actually an XL file, but the weird results below correctly model what I am seeing in my program. Before I punt and use lubridate ...
    Galen MooreGalen Moore
    May 31, 2011 at 2:20 am
    May 31, 2011 at 5:42 pm
  • Hello all, I am new to R and my question should be trivial. I need to create a word cloud from a txt file containing the words and their occurrence number. For that purposes I am using the snippets ...
    Heimat losHeimat los
    May 31, 2011 at 1:36 pm
    May 31, 2011 at 5:22 pm
  • Hello ALL! I am an Linux user (Debian testing i386), with very dusty Win-experience. Nevertheless, my colleagues and I are making some package in R, and I built C-routines to speed up things. I ...
    Petar MilinPetar Milin
    May 31, 2011 at 11:43 am
    May 31, 2011 at 5:09 pm
Group Navigation
period‹ prev | May 2011 | next ›
Group Overview
groupr-help @

835 users for May 2011

David Winsemius: 183 posts Uwe Ligges: 79 posts Duncan Murdoch: 69 posts Dennis Murphy: 57 posts Joshua Wiley: 39 posts Greg Snow: 36 posts Frank Harrell: 33 posts Jim Holtman: 33 posts Andrew Robinson: 32 posts Bert Gunter: 30 posts Peter dalgaard: 30 posts Jonathan Daily: 29 posts Marc Schwartz: 28 posts Prof Brian Ripley: 28 posts Rolf Turner: 28 posts Gabor Grothendieck: 27 posts Schatzi: 27 posts Ben Bolker: 24 posts Peter Ehlers: 24 posts Scott Chamberlain: 24 posts
show more