Grokbase Groups R r-help January 2013
FAQ

Search Discussions

604 discussions - 2,113 posts

  • Hi A.K Regarding my question on comparing normal/ obese/overweight with blood pressure change, I did finally as per the first suggestion of stacking the data and creating a normal category . This ...
    Rex2013Rex2013
    Jan 6, 2013 at 9:55 am
    Jan 19, 2013 at 3:16 am
  • Dear users, I'm trying to learn how to use the "...". I have written a function (simplified here) that uses doBy::summaryBy(): # 'dat' is a data.frame from which the aggregation is computed # ...
    Ivan CalandraIvan Calandra
    Jan 17, 2013 at 2:36 pm
    Jan 30, 2013 at 5:44 pm
  • Hi all, I am very grateful to all those who write to me 1) how i can obtain relative risk (risk ratio) in logistic regression in R. 2) how to obtain the predicted risk for a certain individual using ...
    aminreza Aaminiaminreza Aamini
    Jan 30, 2013 at 8:49 am
    Feb 3, 2013 at 3:47 pm
  • Hello, I do have two different time series A and B, they are different in length and starting point. A starts in Jan, 2012 and ends in Dec, 2012 and B starts in March, 2012 and ends in Nov, 2012. How ...
    Yuan, RebeccaYuan, Rebecca
    Jan 22, 2013 at 3:07 pm
    Jan 22, 2013 at 10:41 pm
  • Hello R-helpers, I am trying to search for string that includes the caret symbol, using the following code: grepl("latitude^2",temp) And R doesn't like that. It gives me: [1] "latitude^2" "latitude ...
    Mtb954Mtb954
    Jan 21, 2013 at 3:26 pm
    Jan 22, 2013 at 11:23 am
  • Dear All I have a data.frame like that: structure(list(name = c("Gga_rs10722041", "Gga_rs10722249", "Gga_rs10722565", "Gga_rs10723082", "Gga_rs10723993", "Gga_rs10724555", "Gga_rs10726238", ...
    Yao HeYao He
    Jan 9, 2013 at 2:23 pm
    Jan 10, 2013 at 1:34 pm
  • Hi, I'm using the R library(car) to draw confidence/prediction ellipses in a scatterplot. parameters: shape, center, radius . If i read dataEllipse() function i can see how these parameters are ...
    Giuseppe AmatulliGiuseppe Amatulli
    Jan 26, 2013 at 9:12 pm
    Feb 10, 2013 at 12:29 am
  • Hello everyone. I am in the process of writing a book in Latex with Texshop, on Mac. This book contains a lot of R code, hence the need to use Sweave. I was able to compile Rnw files, and to sync ...
    Michele casepostaMichele caseposta
    Jan 9, 2013 at 8:25 pm
    Jan 18, 2013 at 10:39 am
  • Hi, I am trying to draw a dotted circle by using symbols command: symbols(0, 0, circles = 1, inches = FALSE, fg = 'gray', lty=2) But it gives me a solid line. I was just wondering whether am I making ...
    Ved P. SharmaVed P. Sharma
    Jan 12, 2013 at 7:43 am
    Jan 15, 2013 at 8:15 pm
  • I installed jpeg package and tried to use kim<-readJPEG("kim.jpeg") to read in a jpeg file, but R gave me an error: Error in readJPEG("kim.jpeg") : unable to open kim.jpeg I already put "kim.jpeg" in ...
    Yi YuanYi Yuan
    Jan 14, 2013 at 1:57 pm
    Jan 14, 2013 at 7:34 pm
  • Dear All, Sorry for asking a newbie question. I want to ask how to import 1000 datasets whose file names are labelled from data1.dat to data1000.dat into R so that they are named M[1, , ] to M[1000, ...
    Ray CheungRay Cheung
    Jan 23, 2013 at 9:16 am
    Jan 28, 2013 at 3:47 pm
  • All, I have some csv files I am trying to import. I am finding that quotes inside strings are escaped in a way R doesn't expect for csv files. The problem only seems to rear its ugly head when there ...
    Tim HowardTim Howard
    Jan 25, 2013 at 6:42 pm
    Jan 28, 2013 at 12:39 pm
  • Hi, I am quite new to R and in need of some advice. I am trying to conduct a meta regression over a some studies with about 7 mod variables which I have to dummy encode. I have found the following ...
    Alma WilflingerAlma Wilflinger
    Jan 19, 2013 at 5:14 pm
    Jan 28, 2013 at 11:01 am
  • Hello all, I have got some data in SAS, and I export it to one excel workbook with multiple sheets, for example, each sheet has the sales information for each state. Then I need to use R to do ...
    Yuan, RebeccaYuan, Rebecca
    Jan 2, 2013 at 8:37 pm
    Jan 3, 2013 at 6:16 pm
  • Dear useRs-- I have been using Sweave with miktex for years, but on a new install on Windows XP, miktex seems to be hung up on single quotes. See example below. Digging through stackexchange, I found ...
    Troy STroy S
    Jan 29, 2013 at 6:37 pm
    Jan 30, 2013 at 6:24 pm
  • I need to repeat a function many times, with differing parameters held constant across iterations. To accomplish this, I would like to create a list (or vector) of parameters, and then insert that ...
    Bsm2Bsm2
    Jan 23, 2013 at 7:59 pm
    Jan 25, 2013 at 10:05 pm
  • Hello, I'm not sure how to explain what I'm looking for but essentially I have a test dataset that looks like this: test: V1 1 1 2 1 3 1 4 2 5 2 6 2 7 1 8 1 9 1 10 2 11 2 12 2 And what I want to be ...
    Jeffrey FuerteJeffrey Fuerte
    Jan 24, 2013 at 9:20 pm
    Jan 25, 2013 at 6:11 am
  • Dear R listers, I am trying to compute the mean of a dummy variable that is encoded as a factor. However, even though the levels of my factor are 0 - 1, when I compute the mean (after coercing the ...
    Francesco SarracinoFrancesco Sarracino
    Jan 23, 2013 at 9:33 am
    Jan 24, 2013 at 9:14 pm
  • I have a data frame with several columns. I want to select the rows with no NAs (as with complete.cases) and all columns identical. E.g., for --8<---------------cut ...
    Sam SteingoldSam Steingold
    Jan 18, 2013 at 8:53 pm
    Jan 20, 2013 at 6:37 pm
  • Hi all, I have read through the archives, but can't find a solution to this problem. I need the text direction on "dependent B", plotted in margin 4, to go top to bottom (opposite what it is now) ...
    Michael RennieMichael Rennie
    Jan 7, 2013 at 6:00 am
    Jan 7, 2013 at 10:56 pm
  • Hello! I have a large data frame x: x<-data.frame(item=letters[1:5],a=1:5,b=11:15) # in actuality, x has 1000 rows x$item<-as.character(x$item) I also have a small data frame y with just 1 row ...
    Dimitri LiakhovitskiDimitri Liakhovitski
    Jan 29, 2013 at 9:11 pm
    Feb 1, 2013 at 10:06 pm
  • Dear expeRts, I struggle with the following problem using snow clusters for parallel computing: I would like to specify l'Ecuyer's random number generator. Base R creates a .Random.seed of length 7, ...
    Marius HofertMarius Hofert
    Jan 23, 2013 at 12:53 am
    Jan 24, 2013 at 5:33 pm
  • Hi All, When carrying out hist(samples,breaksP,probability=TRUE), the column values are considerably greater than 1, which seams very unreasonable. The plot is attached. I think the column value of ...
    Hp wanHp wan
    Jan 21, 2013 at 10:18 pm
    Jan 22, 2013 at 4:08 am
  • Hello R-helpers, I have run the following line of code: x<-dat$col and now I would like to assign names(x) to be "dat$col" (e.g., a character string equal to the column name that I assigned to x) ...
    Mtb954Mtb954
    Jan 17, 2013 at 6:53 pm
    Jan 18, 2013 at 12:52 pm
  • The following 1460 x 1460 matrix can be throught of as 16 distinct 365 x 365 matrices. I'm trying to set off-diaganol terms in the 16 sub-matrices with indices more than +/- 5 (days) from each other ...
    EmorwayEmorway
    Jan 23, 2013 at 3:13 pm
    Feb 8, 2013 at 5:47 pm
  • I'm trying to write a formula method for canonical correlation analysis, that could be called similarly to lm() for a multivariate response: cancor(cbind(y1,y2,y3) ~ x1+x2+x3+x4, data=, ...) or ...
    Michael FriendlyMichael Friendly
    Jan 29, 2013 at 1:44 pm
    Jan 29, 2013 at 4:31 pm
  • Dear all, I have a dataframe of names (netw), with each cell including last name and initials of an author; some cells have NA. I would like to extract only the last name from each cell; this new ...
    Biau DavidBiau David
    Jan 13, 2013 at 8:53 am
    Jan 13, 2013 at 5:41 pm
  • Hi R-users. I'm having difficulty with an integration in R via the package "cubature". I'm putting it with a simple example here. I wish to integrate a function like: f(x1,x2)=2/3*(x1+x2) in the ...
    Naser JamilNaser Jamil
    Jan 8, 2013 at 5:43 pm
    Jan 8, 2013 at 9:36 pm
  • Hello, I have data of Body length and Body weight of 8 boys and 7 girls. I want to draw the plot of Body length (for X) and Body weight (for Y) based on sex. Then the two plots want to be overlapped ...
    Elaine KuoElaine Kuo
    Jan 7, 2013 at 8:26 am
    Jan 8, 2013 at 4:07 pm
  • Dear all: Plan 1: I want to do serval t-test means for different variables in a loop , so I want to add all results to an object then dump() them to an text. But I don't know how to append T-test ...
    Yao HeYao He
    Jan 7, 2013 at 3:20 am
    Jan 7, 2013 at 11:31 pm
  • I am using metafor to create forest plots. This code gives me the expected plot (setting x axis tick marks): forest(forest$OR, ci.lb=forest$Low, ci.ub=forest$High, at=log(c(.05, .25, 1, 10)), ...
    Brian Z RingBrian Z Ring
    Jan 5, 2013 at 5:13 am
    Jan 7, 2013 at 3:46 pm
  • Hello, I wish to count how often zero (0) appears in the vector test. test [1] 1 1 1 1 1 1 2 1 1 1 0 2 0 1 1 0 0 0 1 1 1 0 1 2 1 1 1 1 1 1 I think of something like ... ... but actually I dont know ...
    Hermann NorpoisHermann Norpois
    Jan 3, 2013 at 10:49 pm
    Jan 4, 2013 at 5:26 pm
  • Dear R experts, I have 2 matix: A& B. I am trying to index B against A - (1) find out B rows that fall between the col 1 and 2 of A& put them into a new vector SNP.I made code as below, but I cannot ...
    JiangZhengyuJiangZhengyu
    Jan 3, 2013 at 9:54 pm
    Jan 4, 2013 at 2:31 pm
  • Hi, I want to know if it's possible to pass a vector v=c(x,y,...) to a function f(x,y,...) so that each vector element corresponds to a formal argument of the function. For python programmers ...
    Carlos PitaCarlos Pita
    Jan 25, 2013 at 11:50 pm
    Jan 26, 2013 at 2:26 pm
  • Undoubtedly this question has been asked before, I just can't seem to find the combination of search terms to produce it. I'm trying to resize a dataset that is pulled into R using read.table ...
    EmorwayEmorway
    Jan 25, 2013 at 9:12 pm
    Jan 25, 2013 at 11:18 pm
  • Hi list, Could anyone recommend some good website for formatting R code? For example, when you copy paste R code to gmail and back to R, it loses its format, the dash symbol causes errors. I've had ...
    C WC W
    Jan 24, 2013 at 2:27 am
    Jan 25, 2013 at 12:25 pm
  • Hi Everyone, I am a little new to R and the first problem I am facing is the dilemma whether R is suitable for files of size 2 GB's and slightly more then 2 Million rows. When I try importing the ...
    Gaurav singhGaurav singh
    Jan 19, 2013 at 8:28 am
    Jan 20, 2013 at 2:17 am
  • Dear list members, I'm running some tests looking at differences between means for various levels of a factor, using Tukey's HSD method. I would like to plot the data as boxplots or dotplots, with ...
    Karl Ove HufthammerKarl Ove Hufthammer
    Jan 14, 2013 at 5:36 pm
    Jan 15, 2013 at 6:24 pm
  • Hi all, Thanks in advance for any help. I have a vector "b": b=c(1,1,1,2,3,4,3,2,1,1,1,1,1,2,3,4,5,4,3.5,3,2,1,1,1) Imagine b is river flow throughout time. I would like some code that will generate ...
    Benjamin GillespieBenjamin Gillespie
    Jan 15, 2013 at 4:16 pm
    Jan 15, 2013 at 6:17 pm
  • Dear all, i would like to count the number of times where I have combined occurrences of the categories of 2 variables. For instance, in the dataframe below, i would like to know how many times each ...
    Biau DavidBiau David
    Jan 11, 2013 at 10:54 am
    Jan 13, 2013 at 8:58 am
  • Dear useRs, I have a very basic question. I have a distance matrix and i skipped the upper part of it deliberately. The distance matrix is 1000*1000. Then i used "min" command to extract the lowest ...
    Eliza bottoEliza botto
    Jan 11, 2013 at 5:55 pm
    Jan 11, 2013 at 11:31 pm
  • Hi I have a character matrix with 2 columns A and B, If I want to sort the matrix based on the column B, but based on a specific order of characters: mat<-cbind(c('w','x','y','z'),c('a','b','c','d')) ...
    Array chipArray chip
    Jan 10, 2013 at 6:21 pm
    Jan 10, 2013 at 9:46 pm
  • dear R experts: I want to define a function the calculates the black-scholes value. it takes 5 named parameters, BS <- function(S,K,dt,rf,sigma) {} . let's presume I want to be able to call this not ...
    Ivo welchIvo welch
    Jan 7, 2013 at 11:57 pm
    Jan 10, 2013 at 4:13 pm
  • Hi all, I have a very basic doubt -- but still, I am a newby! My question is about referring to the previous row: in a sample as the following... ID X1 X2 1 A 12 2 A 6 3 A 10 1 B 17 2 B 19 1 C 22 1 D ...
    Paolo DonatelliPaolo Donatelli
    Jan 7, 2013 at 1:33 pm
    Jan 7, 2013 at 6:39 pm
  • Hi, I'm Marianna I'm trying to apply the command "repeat" to my matrix but the repeat process doesn't work as I would. In particular I would like to apply the function robustm () _that I have ...
    MaryMary
    Jan 4, 2013 at 11:13 am
    Jan 6, 2013 at 10:53 am
  • Hello all, Need some suggestions on interesting use cases with R in the field of log processing. Any help would be greatly appreciated. -- With Thanks and Regards, Ramprakash Ramamoorthy, India, +91 ...
    Ramprakash RamamoorthyRamprakash Ramamoorthy
    Jan 4, 2013 at 11:33 am
    Jan 5, 2013 at 11:32 am
  • Hello again, Let say I have 2 matrices which equal number of columns but different number of rows like: Mat1 <- matrix(1:20, 4, 5) Mat2 <- matrix(1:25, 5, 5) Now for each column 1-to-5 I need to ...
    Christofer BogasoChristofer Bogaso
    Jan 4, 2013 at 11:47 am
    Jan 5, 2013 at 1:39 am
  • Hi Sorry for the rather long message. I am trying to use the cfa command in the lavaan package to run a CFA however I am unsure over a couple of issues. I have @25 dichotomous variables, 300 ...
    David PurvesDavid Purves
    Jan 23, 2013 at 11:19 am
    Feb 1, 2013 at 6:38 pm
  • Hi, temp3<- read.table(text=" ID CTIME WEIGHT HM001 1223 24.0 HM001 1224 25.2 HM001 1225 23.1 HM001 1226 NA HM001 1227 32.1 HM001 1228 32.4 HM001 1229 1323.2 HM001 1230 27.4 HM001 1231 22.4236 ...
    ArunArun
    Jan 28, 2013 at 2:48 pm
    Jan 30, 2013 at 11:53 am
  • Hi, I'm working on a project that will generate RAM matrices at random. What I want to do is to be able to automatically identify if the model is non-recursive. For example, the following RAM matrix ...
    Dustin FifeDustin Fife
    Jan 29, 2013 at 4:12 pm
    Jan 29, 2013 at 5:35 pm
Group Navigation
period‹ prev | Jan 2013 | next ›
Group Overview
groupr-help @
categoriesr
discussions604
posts2,113
users541
websiter-project.org
irc#r

541 users for January 2013

Arun: 173 posts David Winsemius: 120 posts Rui Barradas: 56 posts Duncan Murdoch: 52 posts Bert Gunter: 37 posts Jeff Newmiller: 36 posts Uwe Ligges: 33 posts Rolf Turner: 28 posts PIKAL Petr: 25 posts William Dunlap: 24 posts R. Michael Weylandt: 23 posts Berend Hasselman: 22 posts David L Carlson: 22 posts Ista Zahn: 22 posts Jim Lemon: 21 posts Suzen, Mehmet: 21 posts Prof Brian Ripley: 19 posts S Ellison: 19 posts Yuan, Rebecca: 17 posts Greg Snow: 16 posts
show more
Archives