Grokbase Groups R r-help July 2012
FAQ

Search Discussions

822 discussions - 3,128 posts

  • I have already fitted several models using R code; arima(rates,c(p,d,q))� As I heard, best model produce the smallest AIC value, but maximum likelihood estimation procedure optimizer should ...
    Sajeeka NanayakkaraSajeeka Nanayakkara
    Jul 3, 2012 at 8:22 am
    Aug 13, 2012 at 3:39 pm
  • We often refer requesters to the Posting Guide and chide them for not reading it. Recently I had occasion to re-read the Posting Guide which is for all R lists not just R-help. The word ...
    David L CarlsonDavid L Carlson
    Jul 25, 2012 at 3:50 pm
    Jul 31, 2012 at 9:18 am
  • Hello! I am optimizing my code in R and for this I need to know a bit more about the internals. It would help tremendously if someone could link me to a page with O()-complexities of all the ...
    Johan HenrikssonJohan Henriksson
    Jul 17, 2012 at 11:47 am
    Jul 20, 2012 at 12:19 pm
  • Hi there and thanks in advance. I have a large symmetrical matrix stored in a text file. After load in R I would like to extract the same number of columns and rows (symmetrical submatrix) using ...
    A JA J
    Jul 15, 2012 at 6:47 pm
    Jul 16, 2012 at 11:00 pm
  • General problem: I have 20 projects that can be invested in and I need to decide which combinations meet a certain set of standards. The total possible combinations comes out to 2^20. However I know ...
    WwreithWwreith
    Jul 20, 2012 at 12:45 pm
    Jul 24, 2012 at 6:35 pm
  • I am lousy at simple regex and I have not found a solution to a simple problem. I have a vector with some character values that I want to split. Sample data dd1 <- c( "XXY (mat harry)","XXY (jim ...
    John KaneJohn Kane
    Jul 7, 2012 at 9:37 pm
    Jul 9, 2012 at 1:32 pm
  • Hello, I'm coming straight to the point: I have 65 .txt-Files named "XYZ_1.txt" to "XYZ_65.txt" (each number represents a test subject). I have to open them in Microsoft Excel to see the exact ...
    VimmsterVimmster
    Jul 8, 2012 at 11:01 pm
    Jul 12, 2012 at 8:06 am
  • Dear friends, I have two questions regarding the use of lattice. First some code: ## begin code z <- cbind(rep(c("BIC", "ICL", "s_v", "Q_v", "sig-q", "s_lsk", "s_lML", "s_mlsk", "s_mlML", "s_la8", ...
    Ranjan MaitraRanjan Maitra
    Jul 21, 2012 at 6:42 pm
    Jul 23, 2012 at 5:34 am
  • I would like to specify a model with all polynomial interaction terms between two variables, say, up to degree 6. For example, terms like a^6 + (a^5 * b^1) + (a^4 * b^2) + ... and so on. The ...
    YTPYTP
    Jul 2, 2012 at 1:29 pm
    Jul 10, 2012 at 8:01 pm
  • Dear R users, I need a function that gets a number and returns its number of actual decimal places. For example f(3.14) should return 2, f(3.142) should return 3, f(3.1400) should also return 2 and ...
    Martin IvanovMartin Ivanov
    Jul 7, 2012 at 8:52 am
    Jul 10, 2012 at 1:10 pm
  • Hey, I am having problems with importing a csv file to R. I could read the file by typing: read.csv(file="/Users/kama/Desktop/skatter.csv", header=TRUE, sep=";") However, i can not analyze the ...
    F86F86
    Jul 10, 2012 at 4:48 pm
    Nov 25, 2012 at 11:48 pm
  • Dear All, I would like to apply two different "for loops" to each set of four columns of a matrix (the loops here are simplifications of the actual loops I will be running which involve multiple ...
    Claudia PenalozaClaudia Penaloza
    Jul 30, 2012 at 11:18 pm
    Aug 14, 2012 at 5:11 pm
  • To the R help list, When using a data frame, there is no warning or error message when I refer to a non-existent variable inside the data frame. Example ...
    Paulo BarataPaulo Barata
    Jul 15, 2012 at 2:30 pm
    Jul 17, 2012 at 3:27 pm
  • Hello, I'm having some issues grouping cases for some Mann-Whitney U tests I'm attempting to run. I'm willing to use wilcox.test if it'll work; I've also tried wilcox_test() from the "coin" package ...
    David ChertudiDavid Chertudi
    Jul 6, 2012 at 2:14 pm
    Sep 9, 2013 at 6:57 pm
  • Hi, What is the function for inverse normal transformation? Thanks, Carol
    Carol whiteCarol white
    Jul 20, 2012 at 10:21 am
    Jul 20, 2012 at 7:45 pm
  • I would like to remove a loop to speed up my code. I want to remove a loop which references the last row. In general I want to a remove a loop which looks something like this: for 2 to number of rows ...
    JcrosbieJcrosbie
    Jul 3, 2012 at 7:10 pm
    Jul 17, 2012 at 4:43 am
  • Hi, I have two non-normal distributions and use interquartile ranges as a dispersion measure. Now I am looking for a test, which tests whether the interquartile ranges from the two distributions are ...
    Schaber, JörgSchaber, Jörg
    Jul 13, 2012 at 11:32 am
    Jul 15, 2012 at 10:17 am
  • I have a text file like this 2.5 3.6 7.1 7.9 100 3 4 2 3 200 3.1 4 3 3 300 2.2 3.3 2 4 I used "r <- read.table("a.txt", header=T)" The row names becomes X2.5, X3.6... What I need is the row names are ...
    KexinzKexinz
    Jul 12, 2012 at 6:50 pm
    Jul 13, 2012 at 6:16 pm
  • Hello, I fear its a stupid question,..but here it is: If I do this simple calculation with the R console, I surprisingly do not get a zero. Why? -1.1-0.1+1.2 [1] -2.220446e-16 greetings, Ole -- View ...
    OllestratOllestrat
    Jul 10, 2012 at 8:17 pm
    Jul 13, 2012 at 12:51 pm
  • Dear all Is there a simpler method to achieve the following: When I obtain an empty data.frame after subsetting, I need for it to contain one line of NAs. Here's a dummy example: [1] Sepal.Length ...
    Liviu AndronicLiviu Andronic
    Jul 10, 2012 at 1:15 pm
    Jul 11, 2012 at 10:37 pm
  • Dear all, does anybody have experience with building logits in Mlogit? I want to test the use of a couple of alternative specific variables with a generic regression coefficient. However, one of them ...
    Lee van CleefLee van Cleef
    Jul 30, 2012 at 9:30 am
    Aug 14, 2012 at 1:25 pm
  • Hi. This is likely a trivial problem but have not found a solution. Imagine the following dataframe: Lat Lon x1 x2 x3 01 10 NA NA .1 01 11 NA .2 .3 01 12 .4 .5 .6 I want to generate another column ...
    Camilo MoraCamilo Mora
    Jul 24, 2012 at 6:48 am
    Jul 25, 2012 at 5:38 am
  • I have a text file that has semi-colon separated values. The table is nearly 10,000 by 585. The files looks as follows: ******************************************* First line: Skip this line Second ...
    VioravisVioravis
    Jul 9, 2012 at 10:23 am
    Jul 11, 2012 at 10:35 pm
  • Hi all I have a large SAS data set, how do I get it read in R? The data is too big (about 400,000 rows by 100 columns) to be saved as an Excel file. How should I get it read in R? Any packages? I ...
    C WC W
    Jul 6, 2012 at 5:11 pm
    Jul 9, 2012 at 1:28 pm
  • I've successfully reformatted data frames from long to wide with reshape2, but this time I'm getting errors that I want to understand and resolve. Here's the data frame structure and the results of ...
    Rich ShepardRich Shepard
    Jul 5, 2012 at 3:46 pm
    Jul 5, 2012 at 8:03 pm
  • Hello, This should be pretty simple but I cannot get it right. Please point to the right code. Thanks. date r_wvht 1 8/6/2008 0.9766667 2 8/8/2008 0.7733333 3 8/11/2008 1.4833333 4 8/13/2008 ...
    Yolande TraYolande Tra
    Jul 31, 2012 at 5:02 pm
    Jul 31, 2012 at 9:17 pm
  • I'm trying to provide different parameters to the integrate function for various probability functions. I'm using dnorm as the simplest example here. For instance integrate(dnorm, -1.96, 1.96) ...
    FJ MFJ M
    Jul 24, 2012 at 2:23 am
    Jul 27, 2012 at 10:37 pm
  • Hi-- I have three columns in an input file: MONTH QUARTER YEAR 2012-07 2012-3 2012 2001-07 2001-3 2001 2002-01 2002-1 2002 I want to make output like so: MONTH QUARTER YEAR 07 3 2012 07 3 2001 01 1 ...
    Fred GFred G
    Jul 24, 2012 at 5:36 pm
    Jul 24, 2012 at 8:50 pm
  • Hi, I have a dataset which contains several time records for a number of days, plus a variable (light) that allows to determine night time (lihgt= 0) and daytime (light 0). I need to obtain get dusk ...
    Santiago GuallarSantiago Guallar
    Jul 15, 2012 at 4:32 pm
    Jul 19, 2012 at 5:58 am
  • Dear all, I have dataset which contains date and time in the format "yearmonthdayhour". I can read in these data correctly as follows: mydata <- read.csv("pm10_corine_gridcel_hourly_2011.csv", header ...
    Sandy AdriaenssensSandy Adriaenssens
    Jul 13, 2012 at 10:51 am
    Jul 18, 2012 at 8:46 pm
  • Dear R Users, Could you please help me on the following issue? I have a real large yearly data set. For each year I have 365 flow values. Some of the flow values are not known and that�s why you will ...
    Eliza bottoEliza botto
    Jul 6, 2012 at 10:23 pm
    Jul 7, 2012 at 10:24 am
  • I would like to remove rows from the following data frame (df) if there are only two specific elements found in the df$ch character string (I want to remove rows with only "0" & "D" or "0" & "d") ...
    Claudia PenalozaClaudia Penaloza
    Jul 2, 2012 at 10:48 pm
    Jul 5, 2012 at 6:13 pm
  • Hi all, Trying to use an apply to add leading zeros to a set of values in a given vector. I only want to add enough zeros so that the total number of characters is 5, so if I have an element "1" i ...
    LCOG1LCOG1
    Jul 27, 2012 at 1:08 am
    Aug 8, 2012 at 5:55 am
  • hi, i am new to using r .so if you can pls tell me how to read "1951-52" ,"1952-52" date format in r
    Karan AnandKaran Anand
    Jul 2, 2012 at 9:44 am
    Aug 3, 2012 at 12:23 pm
  • Dear all, I am quite new to R and I am having trouble writing the polynomial contrasts for an ordinal factor in MANOVA. # I have a model such as this fit<-manova(cbind(Y1,Y2,Y3)~Groups,data=Events) # ...
    Manzoni, GianMauroManzoni, GianMauro
    Jul 23, 2012 at 9:09 pm
    Jul 30, 2012 at 10:55 pm
  • Dear all, I am a R beginner, and I am looking for a way to do the same thing for all levels of a column in a table. Basically, I have a bunch of protein sequences composed of different amino acid ...
    Zhao JinZhao Jin
    Jul 23, 2012 at 10:01 pm
    Jul 25, 2012 at 1:44 pm
  • Hi, I am using R's grep function to find patterns in vectors of strings. The number of patterns I would like to match is 7,700 (of different sizes). I noticed that I get an error message when I do ...
    MdvaanMdvaan
    Jul 6, 2012 at 2:45 pm
    Jul 23, 2012 at 3:17 pm
  • Hi there. I have been plotting some circles using 'symbols', with radii representing my data, but the radii looked incorrect. It seems to happen with a single circle too: Symbols ( 0, 0, circles = ...
    Stuart LeaskStuart Leask
    Jul 18, 2012 at 10:02 am
    Jul 21, 2012 at 11:31 am
  • Hi, I managed to use the attached data set and figure out the following: flies <- read.table("example12_1.dat",header=TRUE,sep="\t") boxplot(long ~ group, data = flies, horizontal = TRUE, col = ...
    David ArnoldDavid Arnold
    Jul 12, 2012 at 9:13 pm
    Jul 13, 2012 at 1:44 pm
  • Hi all, I would like create a new column in a data.frame (a1) to store 0, 1 data converted from a factor as below. a1$h2<-NULL for (i in 1:dim(a1)[1]) { if (a1$h1[i]=="H") a1$h2[i]<-1 else ...
    Jin LiJin Li
    Jul 3, 2012 at 7:18 am
    Jul 4, 2012 at 4:18 am
  • Hello all, I have written a for loop to act on a dataframe with close to 3million rows and 6 columns and I would like to pass it to apply() to speed the process up (I let the loop run for 2 days ...
    PguilhaPguilha
    Jul 2, 2012 at 11:25 am
    Jul 2, 2012 at 9:46 pm
  • Dear Community, I have been using two types of survival programs to analyse a data set. The first one is an R function called aftreg. The second one an STATA function called streg. Both of them ...
    JPFJPF
    Jul 6, 2012 at 9:12 pm
    Aug 31, 2012 at 1:51 pm
  • I need to write an if/then statement saying something along the lines of: if (VALUE is in list) {... How do I write that in R's language. Thanks! -- View this message in context ...
    CmCm
    Jul 30, 2012 at 12:55 pm
    Jul 30, 2012 at 8:22 pm
  • I have a column of 1000 datapoints from the normal distribution with mean 2 and variance 4. How can I get a histogram of these observations with 20 bins with each bin having 50 observations? -- ...
    Jim SilvertonJim Silverton
    Jul 5, 2012 at 7:29 pm
    Jul 30, 2012 at 5:48 pm
  • Hi, I have a query on regression output generated by R. After running this 2 statements the following output is generated. Call: lm(formula = Y ~ X, data = trail) Residuals: Min 1Q Median 3Q Max ...
    Krunal NanavatiKrunal Nanavati
    Jul 26, 2012 at 12:28 pm
    Jul 27, 2012 at 4:48 pm
  • Upgraded to 2.15.1 from 2.15.0 this morning, on Windows 7. I'm setting R_HOME in Control Panel, and before the upgrade, 2.15.0 recognized the value with no problems and would use it to find ...
    Kirk FlemingKirk Fleming
    Jul 23, 2012 at 9:06 pm
    Jul 26, 2012 at 9:50 pm
  • Hi, I have a dataset in which I would like to select rows based on matching conditions and return the maximum value of a variable else return one row if duplicate counts exist. My dataset looks like ...
    KborgmannKborgmann
    Jul 25, 2012 at 5:10 pm
    Jul 25, 2012 at 10:43 pm
  • Hi all, I am new to R. I downloaded and installed R 2.15.1 I tried typing R.exe --help at the DOS Command line C:\", but I keep receiving: [quote] R.exe is not recognized as an internal or external ...
    GossGoss
    Jul 24, 2012 at 4:53 am
    Jul 24, 2012 at 6:21 pm
  • Hi, I would like to evaluate a function, with 3 arguments, for instance, myfunc<-function(a,b,c) { sqrt(a)-exp(b)+4*c } How to execute myfunc(x,y,z), for all x, all y and all z, where x,y,z are ...
    Carla moreiraCarla moreira
    Jul 20, 2012 at 11:05 am
    Jul 20, 2012 at 2:54 pm
  • Hi, I'm looking for some ideas on how to reproduce the attached image in R. There are three samples, each of size n = 10. The first is drawn from a normal distribution with mean 60 and standard ...
    DarnoldDarnold
    Jul 13, 2012 at 6:18 am
    Jul 14, 2012 at 3:29 am
Group Navigation
period‹ prev | Jul 2012 | next ›
Group Overview
groupr-help @
categoriesr
discussions822
posts3,128
users742
websiter-project.org
irc#r

742 users for July 2012

Arun: 178 posts Rui Barradas: 178 posts R. Michael Weylandt: 90 posts Bert Gunter: 86 posts John Kane: 75 posts David Winsemius: 71 posts Peter Ehlers: 54 posts David L Carlson: 50 posts Peter dalgaard: 50 posts Jim Holtman: 45 posts Jeff Newmiller: 43 posts Sarah Goslee: 41 posts Jean V Adams: 40 posts Uwe Ligges: 40 posts Duncan Murdoch: 36 posts Jessica Streicher: 36 posts William Dunlap: 33 posts Prof Brian Ripley: 28 posts Gabor Grothendieck: 25 posts Petr Savicky: 25 posts
show more
Archives