FAQ

Search Discussions

1,024 discussions - 3,457 posts

  • I have a text file similar to this (separated by spaces): x <- "DF12 This is an example 1 This DF12 This is an 1232 This is DF14 This is 12334 This is an DF15 This 23 This is an example " and I know ...
    Lauri NikkinenLauri Nikkinen
    Sep 8, 2009 at 11:53 am
    Sep 8, 2009 at 7:29 pm
  • Hi, Today I was flabbergasted to see something that looks like a rounding error in the very basic seq function in R. [1] FALSE It turns out that the alternative works just fine. Are there any good ...
    Michael KnudsenMichael Knudsen
    Sep 30, 2009 at 6:40 pm
    Sep 30, 2009 at 11:52 pm
  • I'm relatively new to R .I tried converting the datetime column with values like 01apr1985:00:00:00.000 using strptime(datetime,"%d%b%Y).Could anyone help me in this regard .Please reply ASAP i ...
    PremmadPremmad
    Sep 18, 2009 at 5:03 am
    Sep 21, 2009 at 4:15 am
  • Hi, How do you people avoid copy-pasting and manual editing of the code posted in this list? I mean that if some one post a solution for an answer like this: [1] 1 2 3 4 5 I have to copy-paste it to ...
    Johannes raraJohannes rara
    Sep 19, 2009 at 7:44 am
    Sep 20, 2009 at 4:09 am
  • Dear All, I was looking for the color index in?image function,?such as from topo.colors(n) and etc. but still never found it. For instance, from the help menu ...
    FMHFMH
    Sep 5, 2009 at 11:06 am
    Feb 25, 2010 at 4:15 pm
  • Hi, I am trying to plot the following data so that it can be visually represented well. I tried the dotchart but I felt it was too spread out. Then I tried the barplot which is good enough for me. Is ...
    Nair, Murlidharan TNair, Murlidharan T
    Sep 23, 2009 at 7:01 pm
    Sep 24, 2009 at 4:00 pm
  • Dear R users, I am trying to read in a file with 105 columns, and when trying to attach it, get an error as follows: Error in attach(vc1) : variable names are limited to 256 bytes Is there a way to ...
    A SinghA Singh
    Sep 21, 2009 at 8:04 pm
    Sep 22, 2009 at 4:33 am
  • Hi, R users, What may be the best function in R to do variable selection in logistic regression? I have the same number of variables as the number of samples, and I want to select the best ...
    annie Zhangannie Zhang
    Sep 3, 2009 at 1:36 am
    Sep 3, 2009 at 9:45 pm
  • Dear r-Community, Step1: I would like to calculate a NMDS (package vegan, function metaMDS) with species data. Step2: Then I want to plot environmental variables over it, using function envfit. The ...
    Kim VanselowKim Vanselow
    Sep 9, 2009 at 12:43 pm
    Sep 28, 2009 at 8:02 pm
  • I have to remove missing data both in character and numeric datatype.I tried using NA condition but it is not working ,please help me to solve this. -- View this message in context ...
    PremmadPremmad
    Sep 21, 2009 at 6:16 am
    Oct 9, 2009 at 4:02 pm
  • Currently as the first column in a data frame I have string values in the format xx_yy - I want to create a new column with just the substring xx (for each row in turn). Three possible ways to do ...
    Dry, Jonathan RDry, Jonathan R
    Sep 25, 2009 at 2:01 pm
    Oct 1, 2009 at 2:46 pm
  • Hi all, I cannot get xtabs to count NA's like I expect. Below is a sample session, and note that the last two calls to xtabs() yield exactly the same thing. I am running R-2.5.0 -- if there was a bug ...
    WsWs
    Sep 4, 2009 at 11:49 pm
    Sep 24, 2009 at 4:49 pm
  • Dear R, the condition: identical(length(x),1) returns FALSE but print(length(x)) returns 1 and: is.vector(x) is TRUE. is.integer(length(x)) is TRUE length(x) ==1 is TRUE I am puzzled. Regards -- ...
    CorradoCorrado
    Sep 15, 2009 at 4:16 pm
    Sep 15, 2009 at 7:45 pm
  • Hi, Does anybody know, what is going on here? [,1] [1,] 1 [1] 0.5773214 BR, Markku Karhunen researcher University of Helsinki
    Markku KarhunenMarkku Karhunen
    Sep 4, 2009 at 10:25 am
    Sep 8, 2009 at 6:50 pm
  • Dear all, Lets say I have a data frame as follows: Date Income 1 2006-08-23 73.79 2 2006-08-30 72.46 3 2006-09-06 76.32 4 2006-09-13 72.43 5 2006-09-20 72.62 is there a way to group the data by month ...
    Clair CrossuptonClair Crossupton
    Sep 9, 2009 at 10:51 am
    May 18, 2012 at 11:03 am
  • Hi, x=matrix(1:60,nr=6) I can refer the last 2 rows by x[5:6,] If I don't know the total number of rows is 6, is there a way to refer the last 2 rows? Regards, Peng
    Peng YuPeng Yu
    Sep 14, 2009 at 3:32 pm
    Nov 5, 2009 at 4:14 pm
  • Dear List, creating factors in a given non-default orders is notoriously difficult to explain in a course. Students love the ifelse construct given below most, but I remember some comment from Martin ...
    Dieter MenneDieter Menne
    Sep 30, 2009 at 7:43 am
    Oct 1, 2009 at 11:47 am
  • Dear R users, Does anyone has implemented the inverse of the matrix exponential (expm in the package Matrix)? In Matlab, there're logm and expm, there's only expm in R. Cheers Mimosa
    Mimosa ZeusMimosa Zeus
    Sep 26, 2009 at 9:06 pm
    Sep 28, 2009 at 11:01 am
  • Hi, For very large matrices, is this the most efficient way to add two variables together? ############################# attach(attenu) new<-rowSums(cbind(mag, station)) ############################# ...
    Tzygmund mcfarlaneTzygmund mcfarlane
    Sep 26, 2009 at 3:16 pm
    Sep 27, 2009 at 2:31 pm
  • hi, I use xtable to convert data.frames to html tables. But when I use the print-command I always get the whole output printed even if I just want to save the html table into a variable; table <- ...
    Martin BatholdyMartin Batholdy
    Sep 21, 2009 at 9:52 pm
    Sep 24, 2009 at 3:28 pm
  • Is there anything like cumsum and cumprod but which allows you to apply an arbitrary function instead of sum and product? In other words, I want a function cumfunc(x, f) that returns a vector, so ...
    OKB (not okblacke)OKB (not okblacke)
    Sep 16, 2009 at 9:00 pm
    Sep 17, 2009 at 2:11 am
  • Hello, How can I make xtable print a comma as decimal separator? Setting the option OutDec isn't enough for xtable: library(xtable) options(OutDec = ",") x <- c(1.1, 1.2, 1.3) y <- c(2.3, 2.2, 2.1) d ...
    Jakson A. AquinoJakson A. Aquino
    Sep 15, 2009 at 3:06 pm
    Sep 16, 2009 at 6:26 pm
  • Hello all, To start with, these measurements are on Linux with R 2.9.2 (64-bit build) and Python 2.6 (also 64-bit). I've been investigating R for some log file analysis that I've been doing. I'm ...
    Evan KlitzkeEvan Klitzke
    Sep 15, 2009 at 3:11 am
    Sep 15, 2009 at 7:48 pm
  • Dear list, I am trying to make eps file with embedded font. I use: postscript("ranking-exp-all.eps", horizontal=TRUE, onefileúLSE, paper="special", height=8, width, family="Helvetica") # plot stuff ...
    Simone GabbrielliniSimone Gabbriellini
    Sep 4, 2009 at 2:01 pm
    Sep 11, 2009 at 4:09 am
  • Dear useRs, I want to plot the following barplot with lines instead of bars. Is there a way? data <- data.frame(cbind(k = 0:3, fk = c(11, 20,7,2), f0k = c(13.72, 17.64, 7.56, 1.08), fkest = c(11.85, ...
    Rafael MoralRafael Moral
    Sep 8, 2009 at 2:44 pm
    Sep 9, 2009 at 5:19 pm
  • I have a data that looks like this: http://dpaste.com/88561/plain/ And I intend to create multiple density curve into one plot, where each curve correspond to the unique ID. I tried to use "sm" ...
    Gundala ViswanathGundala Viswanath
    Sep 2, 2009 at 10:10 am
    Sep 2, 2009 at 2:07 pm
  • I have not found an easy way to compress a file on filesystem. Especially I'd like to compress a pdf from pdf() function/device. Is it possible to compress It on the flight? I'd like to do something ...
    Daniele AmbertiDaniele Amberti
    Sep 30, 2009 at 8:14 am
    Oct 2, 2009 at 7:12 am
  • Hello Group, I'm trying to learn R and am having a problem getting output from a function I'm trying to write. The problem is clearly one of scope, but I can't find the documentation that tells me ...
    David YoungDavid Young
    Sep 21, 2009 at 3:29 pm
    Sep 30, 2009 at 4:28 pm
  • Colleagues, Hopefully a simple problem: I want to delete a column with a known name from a dataframe. I could write: FRAME <- FRAME[, names(FRAME) != NAMETODELETE] or FRAME <- FRAME[, !names(FRAME) ...
    Dennis FisherDennis Fisher
    Sep 29, 2009 at 8:12 pm
    Sep 30, 2009 at 2:47 am
  • Hi,everyone i need to calculate quartile values of a variable grouped by the other variable . same as in aggregate function(only median,mean or functions is possible-i think so) Could you please help ...
    PremmadPremmad
    Sep 22, 2009 at 9:51 am
    Sep 23, 2009 at 12:10 pm
  • Hello, dear R-ers! I built a data frame "grid" (below) with 4 columns. I want to exclude all rows that have equal values in ANY 2 columns. Here is how I am doing it ...
    Dimitri LiakhovitskiDimitri Liakhovitski
    Sep 21, 2009 at 6:14 pm
    Sep 21, 2009 at 7:26 pm
  • Hi, It might be a primitive question but how it is possible to determine if a variable is initialized in an environment? Suppose that we start a R session and wants to run a script which use the ...
    Carol whiteCarol white
    Sep 11, 2009 at 5:15 pm
    Sep 15, 2009 at 12:39 am
  • example code: P = function(whichday,columns){ y = which(pvalue[,whichday]<Pvaluetest, arr.ind=TRUE) dayarb = raw_urine[y,day1_ind] daystand = raw_urine[y,columns] meandayxx = geometricmeanRow(dayarb) ...
    Edward ChenEdward Chen
    Sep 11, 2009 at 10:35 pm
    Sep 14, 2009 at 9:32 pm
  • After upgrading R to 2.9.2, I can't use the anova() fuction. It says "could not find function "Varcov" ". What's wrong with my computer? Help needed, thanks! Yao Zhu Department of Urology Fudan ...
    Zhu yaoZhu yao
    Sep 12, 2009 at 9:24 am
    Sep 12, 2009 at 6:07 pm
  • Dear All, I have the following in a .Rd file: ... human readable (not binary) format. The format itself is like the following: \preformatted{ \# vertex1name vertex2name [optionalWeight] vertex3name ...
    Gábor CsárdiGábor Csárdi
    Sep 29, 2009 at 10:07 am
    Sep 30, 2009 at 9:25 pm
  • Dear All! I'm looking for equivalent of Matematica function "Which" which works as follows: z = Which[x<10,0.3, 10<=x<20,0.5, 20<=x<100,1] where x is a vector I can replace it with custom function ...
    Jarek JasiewiczJarek Jasiewicz
    Sep 29, 2009 at 6:11 pm
    Sep 29, 2009 at 7:17 pm
  • Dear All, to produce output of several columns of a data frame, I tried to use lapply and also l_ply. In both cases, I would like to print a header line containing also the name of the respective ...
    Heinz TuechlerHeinz Tuechler
    Sep 28, 2009 at 11:22 am
    Sep 28, 2009 at 4:53 pm
  • Hi all, I want to download data from those two different sources, directly into R : http://www.rateinflation.com/consumer-price-index/usa-cpi.php http://eaindustry.nic.in/asp2/list_d.asp First one is ...
    BogasoBogaso
    Sep 24, 2009 at 1:34 pm
    Sep 26, 2009 at 6:22 pm
  • [,1] [,2] [1,] "apr" "1992" [2,] "aug" "1992" [3,] "dec" "1992" [4,] "feb" "1992" [5,] "jan" "1992" [6,] "jul" "1992" [7,] "jun" "1992" [8,] "mar" "1992" [9,] "may" "1992" [10,] "nov" "1992" [11,] ...
    MeghMegh
    Sep 11, 2009 at 1:46 pm
    Sep 23, 2009 at 12:27 pm
  • Dear R community, I have a dataframe with say 100 different variables. I wish to regress variable 1 separately on every other variable (2-100) in a linear regression using lm. There must be an easy ...
    Georg EhretGeorg Ehret
    Sep 20, 2009 at 6:05 pm
    Sep 20, 2009 at 9:27 pm
  • Hi, I have the precision values of a system on two different data sets. The snippets of these results are as shown: sample1: (total 194 samples) 0.6000000238 0.8000000119 0.6000000238 0.2000000030 ...
    Robert HallRobert Hall
    Sep 16, 2009 at 6:49 pm
    Sep 18, 2009 at 3:52 pm
  • Dear R-helpers, I have a number of dataframes that looks something like this: mydfr <- data.frame(treatment=c(rep("A",3),rep("B",3)), Xmeas=1:6, Ymeas=c(2,4,3,3,5,6)) # except with many more ...
    Remko DuursmaRemko Duursma
    Sep 14, 2009 at 6:03 am
    Sep 14, 2009 at 12:36 pm
  • Hello, I am trying to get fitted/estimated values using kernel regression and a triangular kernel. I have found packages that easily fit values from a kernel regression (e.g. ksmooth) but do not have ...
    BryanBryan
    Sep 12, 2009 at 5:51 pm
    Sep 13, 2009 at 5:55 pm
  • Hi all, I have been using R on Windows for a long time, but now I am ready to move to Mac OS X, but I was just wondering if R works better on Mac than on Windows. This is because I had some memory ...
    Victor Manuel Garcia GuerreroVictor Manuel Garcia Guerrero
    Sep 11, 2009 at 5:15 pm
    Sep 12, 2009 at 3:09 am
  • Hi I deal with long vectors almost all of whose elements are zero. Typically, the length will be ~5e7 with ~100 nonzero elements. I want to deal with these objects using a sort of sparse vector. The ...
    Robin HankinRobin Hankin
    Sep 8, 2009 at 1:06 pm
    Sep 8, 2009 at 4:31 pm
  • Hello, I am using R to analyze a large multilevel data set, using lmer() to model my data, and using anova() to compare the fit of various models. When I run two models, the output of each model is ...
    RaptonRapton
    Sep 4, 2009 at 4:10 pm
    Sep 7, 2009 at 11:55 pm
  • Would like some tips on how to avoid loops as I know they are slow in R i've got a data frame : a b c 1 5 2 4 6 9 5 2 3 8 3 2 What i'd like is to sum for each value of a, the sum of b and the sum of ...
    DolarDolar
    Sep 2, 2009 at 4:08 am
    Sep 2, 2009 at 4:50 pm
  • Dear friends, what is this error message in gam???? I cannot understand what it means .... is it a bug? gam_bray_scot24_pc_0505<gam(bray~s(PC1,PC2,PC3,PC4,PC5, ...
    CorradoCorrado
    Sep 1, 2009 at 1:51 pm
    Sep 2, 2009 at 11:25 am
  • Hi, In 'example(barplot)' running in R, I see 'Hit <Return to see next plot:', then R waits for my input. I am wondering how to wait for a user response in Rscript. Regards, Peng
    Peng YuPeng Yu
    Sep 6, 2009 at 4:52 pm
    Nov 19, 2009 at 10:53 pm
  • I need to play games with an expression similar to the following one: print(xyplot(DepVar ~ Group|Covar, groups=Othergroup, data=mydf, pch = 18 ,main="Testcase",auto.key = TRUE)) The problem is that ...
    Erich NeuwirthErich Neuwirth
    Sep 22, 2009 at 7:03 pm
    Oct 1, 2009 at 2:01 pm
Group Navigation
period‹ prev | Sep 2009 | next ›
Group Overview
groupr-help @
categoriesr
discussions1,024
posts3,457
users838
websiter-project.org
irc#r

838 users for September 2009

David Winsemius: 192 posts Gabor Grothendieck: 117 posts Henrique Dallazuanna: 105 posts Jim Holtman: 77 posts Duncan Murdoch: 71 posts Baptiste.auguie: 64 posts Peng Yu: 61 posts Steve Lianoglou: 56 posts Uwe Ligges: 43 posts Ted Harding: 37 posts Turner Rolf: 34 posts Erik Iverson: 32 posts Cls59: 31 posts Jorge Ivan Velez: 31 posts Petr PIKAL: 31 posts William Dunlap: 30 posts John Kane: 27 posts Greg Snow: 26 posts Topi, Corrado: 26 posts Jim Lemon: 25 posts
show more
Archives