Grokbase Groups R r-help May 2016

Search Discussions

221 discussions - 794 posts

  • Dear all In the grep command below, is there a way to identify only "age" and not "age2"? Thanks. [1] 5 6 Also, I post message to r-help at and that's subject to approval by the list ...
    Steven YenSteven Yen
    May 3, 2016 at 10:38 am
    May 20, 2016 at 12:03 am
  • I want a function to evaluate one argument in the environment of a data.frame supplied as another argument. "attach" works for this, but "with" does not. Is there a way to make "with" work? I'd ...
    Spencer GravesSpencer Graves
    May 6, 2016 at 12:12 am
    May 9, 2016 at 12:31 pm
  • Hi All, I would like to route the output to a file using sink(). When using the example from the ?sink documentation: sink("sink-examp.txt") i <- 1:10 outer(i, i, "*") sink() unlink("sink-examp.txt") ...
    G MaubachG Maubach
    May 10, 2016 at 7:25 am
    May 12, 2016 at 9:10 am
  • Dear R-help I would like to split long string at specified precomputed positions. 'substring' needs beginings and ends. Is there a native function which accepts positions so I don't have to count ...
    Jan KacabaJan Kacaba
    May 11, 2016 at 8:12 pm
    May 17, 2016 at 2:35 pm
  • Dear R users, I am running a logistic regression using the rms package and the code looks as follows ...
    May 28, 2016 at 5:01 pm
    Jun 1, 2016 at 11:45 am
  • Hello. I've tried to run R, but I receive many warnings and can't do simple stuff such as installing packages. Here's the full log when I run it. Does anyone know ...
    Alba PompeoAlba Pompeo
    May 12, 2016 at 11:45 am
    May 17, 2016 at 11:01 am
  • Hi All, I have the following script, that raises error at the last command. I am new to R and require some clarification on what is going wrong. #Creating the training and testing data sets splitFlag ...
    Muhammad BilalMuhammad Bilal
    May 8, 2016 at 11:14 pm
    May 10, 2016 at 10:17 am
  • Dear list, Say I have a data frame test <- data.frame(C1=c('a,b,c,d'),C2=c('g,h,f')) I want to replace the commas with semicolons sub(',',';',test$C1) - test$C1 will only replace the first comma of a ...
    Jun ShenJun Shen
    May 27, 2016 at 3:10 pm
    May 31, 2016 at 12:55 pm
  • Dear Rxperts! Is there a way to compute relative values.. using within().. function? Any assistance/suggestions are highly welcome!! Thanks again, Santosh... A sample dataset and the computation ...
    May 27, 2016 at 11:00 pm
    Jun 1, 2016 at 8:45 am
  • Hi, Just getting into using GAM using the mgcv package. I've generated some models and extracted the splines for each of the variables and started visualizing them. I'm noticing that one of my ...
    Dominik SchneiderDominik Schneider
    May 11, 2016 at 12:30 am
    May 16, 2016 at 8:23 pm
  • Hi all, I am trying to ge get the next month of the year. today <- Sys.Date() xx<- format(today, format="%B%Y") I got "May2016", but I want Jun2016. How do I do that? My other question is that, I ...
    May 6, 2016 at 11:11 pm
    May 7, 2016 at 11:48 pm
  • Hello, First time user on Ubuntu 14.4 with Ubuntus R Commander and The program icon of the commander executes On first run it started downloading, compiling and installing various packages. One of ...
    C&A SägerC&A Säger
    May 4, 2016 at 6:51 pm
    May 5, 2016 at 5:07 pm
  • Hi All, I am using R for social sciences. In this field I am used to use short variable names like "q1" for question 1, "q2" for question 2 and so on and label the variables like q1 : "Please tell us ...
    G MaubachG Maubach
    May 31, 2016 at 12:00 pm
    Jun 1, 2016 at 10:57 pm
  • Hi all, I have a messy text file and from this text file I want extract some information here is the text file (out.txt). One record has tow lines. The mean comes in the first line and the SE of the ...
    May 31, 2016 at 12:13 am
    Jun 1, 2016 at 6:24 am
  • I want to print a table where table elements are colored according to the frequency of the bin. ?For example, consider below table.? Function values that I would like to print in the table ...
    Naresh GurbuxaniNaresh Gurbuxani
    May 28, 2016 at 1:10 pm
    May 30, 2016 at 7:05 am
  • Dear fellow R users: I am reading a data (ascii) file with fortran fixed format, containing multiple records. R does not recognize fortran's record break (a slash). I tried to do the following but it ...
    Steven YenSteven Yen
    May 27, 2016 at 5:56 pm
    May 28, 2016 at 5:02 pm
  • Dear All, I am sure the answer is a one liner, but I am banging my head against the wall and googling here and there has not helped much. Consider the following time series tt<-structure(c(NaN, NaN, ...
    Lorenzo IsellaLorenzo Isella
    May 27, 2016 at 10:14 am
    May 28, 2016 at 4:47 pm
  • Hello, I'm working with R language, and plotting some parameters over time. I need to draw a shaded area under the curve of eacj parameter. For that, I might use the polygon (x,y) function, assigning ...
    Óscar JiménezÓscar Jiménez
    May 26, 2016 at 9:37 am
    May 26, 2016 at 8:28 pm
  • I have a data frame with 10 columns. In the last column is an alphaneumaric identifier. For most rows, this alphaneumaric identifier is unique to the file, however some of these alphanemeric ...
    May 24, 2016 at 7:46 pm
    May 24, 2016 at 8:37 pm
  • Hi group: I am having difficulty with if else condition. I kindly request some help. I have a matrix k C1 C2 C3 C4 A 0.09902175 -0.1083887 0.2018689 -0.3546167 B 1.60623838 -1.4167034 0.9076373 ...
    Adrian JohnsonAdrian Johnson
    May 22, 2016 at 5:58 pm
    May 23, 2016 at 7:46 am
  • Hello, I can't post my code since it's on a work computer. But basically, I have a dataframe that has two columns, one is a string and the other is an integer. I want to turn this into a vertival ...
    May 12, 2016 at 5:19 pm
    May 13, 2016 at 2:09 pm
  • This is my first attempt to try R web scraping tools, for a project my daughter is working on. It concerns a data base of projects in Sao Paulo, Brazil, listed at ...
    Michael FriendlyMichael Friendly
    May 10, 2016 at 6:45 pm
    May 11, 2016 at 6:26 pm
  • Hi, I am very new to R and just started learning R. But i am not from statistical background so can i learn R or to learn R statistical background is must. Please guide. Thanks in Advance Prasad ...
    Prasad KalePrasad Kale
    May 31, 2016 at 7:22 am
    May 31, 2016 at 3:09 pm
  • ?Hi. I am new to R and confused by some conflicting and contradictory information about it. Where and how do I create a numeric data file with .csv extension for use in R? So numbers meaning numeric ...
    May 27, 2016 at 11:40 pm
    May 29, 2016 at 2:13 am
  • Greetings R community, My aim is to analyze a mixed-effects model with temporal pseudo-replication (repeated measures on the same experimental unit) using ?nlme?. However, my code returns the error ...
    James HensonJames Henson
    May 25, 2016 at 6:59 pm
    May 27, 2016 at 9:25 pm
  • Hello, I am trying to merge two text files by using the timestamp header for both the files: The first file has the following format for the timestamp:"2012-01-01 23:30:00 UTC" Timestamp for the ...
    Bhaskar MitraBhaskar Mitra
    May 22, 2016 at 4:40 pm
    May 23, 2016 at 6:16 pm
  • The syntax mydat <- data.frame( y,x ) fit1 <- lm( y~., data=mydat ) appears to perform a multivariable regression of y on every non-y variable in the data frame mydat. I can not find this syntax ...
    John SorkinJohn Sorkin
    May 23, 2016 at 11:26 am
    May 23, 2016 at 3:31 pm
  • Dear R users: I have written the following lines : when I wrote the following line I have obtained an error message, I don't know why namely (t(y-X %*% b)%*%(y-X %*% b)/(length(y)-ncol(X))) is a ...
    George bridaGeorge brida
    May 21, 2016 at 7:00 pm
    May 21, 2016 at 8:29 pm
  • Hi, I have a plot with log scale on the axes. How do I add ticks and labels in addition to the ones provided by default? Can I specify where I want the ticks and labels? For example: set.seed(12345) ...
    Brian SmithBrian Smith
    May 19, 2016 at 1:40 pm
    May 20, 2016 at 1:06 pm
  • Hi there I have been using R for a while now. I am doing my PhD project with it. Recently, it keeps crashing, mostly when I draw a graph and use XYPLOT code. I even spent some money on cleaning ...
    Rezvan hatamiRezvan hatami
    May 18, 2016 at 10:37 am
    May 19, 2016 at 8:16 pm
  • Hello, I have a sample of 1327 locations, each one idetified by an id and a numerical code. I need to build a spatial matrix, say, M, i.e. a 1327x1327 matrix collecting distances among the ...
    A M LavezziA M Lavezzi
    May 12, 2016 at 9:26 am
    May 16, 2016 at 4:53 pm
  • Hi all, I've a simple question. I have a matrix with same values over and under the diagonal. That's an example: [,1] [,2] [,3] [1,] NaN 45 63.43495 [2,] 45.00000 NaN 90.00000 [3,] 63.43495 90 NaN ...
    Denis FrancisciDenis Francisci
    May 16, 2016 at 4:10 pm
    May 16, 2016 at 4:39 pm
  • Hello, I am trying to run a code I have been using for a few years now after downloading the new R version 3.3.0 and I get the following error ...
    Luca MeyerLuca Meyer
    May 10, 2016 at 4:58 am
    May 10, 2016 at 5:07 pm
  • Hi, I just downloaded the Agricolae package and tried to access it using the commands listed below (and received the error messages in red). Any suggestions on resolving these errors? Thanks for your ...
    Phillips,Douglas APhillips,Douglas A
    May 6, 2016 at 4:35 pm
    May 6, 2016 at 10:02 pm
  • Dear R developers and users, Consider the object : Re-assignment works fine for columns 1 and 2, but fails for column 3. If a is a valid object, the assignment should work. Warning message: In ...
    Yasir SuhailYasir Suhail
    May 3, 2016 at 11:13 pm
    May 4, 2016 at 6:25 am
  • Hi, I am exactly replicating the SEM model which was done in SAS using Proc Calis in R. Used sem package in R but not getting the GFI as same as in SAS (approximately 15% difference) and also one ...
    May 31, 2016 at 6:28 pm
    Jun 3, 2016 at 2:08 pm
  • I am completing a meta-analysis on the effect of CBT on low self-esteem and I could use some help regarding the regression feature in metafor. Based on the studies that I am using for the analysis, I ...
    Dan KolubinskiDan Kolubinski
    May 30, 2016 at 6:27 pm
    May 31, 2016 at 8:52 pm
  • We conduct medical research and our datafiles therefore contain sensitive data, not to be shared in the cloud (Dropboc, Box, Drive, Bitbucket, GitHub). When we collaborate on a r-analysis-script, we ...
    Nikolai StenforsNikolai Stenfors
    May 31, 2016 at 10:44 am
    May 31, 2016 at 3:55 pm
  • Hi all, I'm seeing the natural sequencing of email threads getting corrupted. For example, a May 26 thread on subject 'Shaded areas in R' would have been initiated by an email at 6:58am. However I ...
    Fowler, MarkFowler, Mark
    May 30, 2016 at 12:51 pm
    May 30, 2016 at 11:20 pm
  • Hi all, I have the following df and I want to know which Protocols are VeryFast, which are FAST, which are SLOW and also which ones are VerySLOW : $ Protocol : Factor w/ 48 levels "DP FS QTSE ...
    Chalabi ElaheChalabi Elahe
    May 26, 2016 at 7:35 pm
    May 27, 2016 at 3:49 pm
  • Hi all , I have the following bar chart and I want to add SLC variable values to the charts but I don't know how to use geom_text: ggplot(df,(Protocol,fill=quant))+geom_bar()+coord_flip() Thanks for ...
    Chalabi ElaheChalabi Elahe
    May 27, 2016 at 1:08 pm
    May 27, 2016 at 3:07 pm
  • I have a large dataset, a sample of which is: a<- c(?A?, ?B?,?A?, ?B?,?A?, ?B?,?A?, ?B?,?A?, ?B?) b <-c(15, 35, 20, 99, 75, 64, 33, 78, 45, 20) c<- c( 111, 234, 456, 876, 246, 662, 345, 480, 512, ...
    May 25, 2016 at 10:37 pm
    May 26, 2016 at 1:55 pm
  • In my environment I have a data frame called Samples_1.txt. From this data frame I need to get variable V1. My code doesn't work. Note: I need to do it in this way because I have the code into a for ...
    May 24, 2016 at 8:59 pm
    May 24, 2016 at 10:39 pm
  • Hi, *stopifnot(FALSE, someOtherExpression)* For the above code I expect stopifnot() to always say that 'FALSE is not TRUE' regardless of what someOtherExpression is(It may evaluate to TRUE or FALSE ...
    Vasanth MohanVasanth Mohan
    May 20, 2016 at 8:44 am
    May 20, 2016 at 3:42 pm
  • I'm using the "GameTheory" package--- DefineGame(14,values) and values is equal to 16,383 observations. I keep getting the following error- [Error in data.frame(rep(0, 2^n - 1), row.names = Bmat) ...
    Rees, Lisa Marie (MU-Student)Rees, Lisa Marie (MU-Student)
    May 19, 2016 at 2:16 pm
    May 20, 2016 at 12:51 pm
  • Hi all: As to the anova, we can perform multiple comparison via TukeyHSD. But as to chi-square test for frequency table,how to perform multiple comparison? For example, if I want to compare 3 ...
    May 19, 2016 at 3:56 pm
    May 20, 2016 at 11:53 am
  • Folks I have some very long vectors - typically 1 million long - which are indexed by another vector, same length, with values from 1 to a few thousand, sp each sub part of the vector may be a few ...
    John LogsdonJohn Logsdon
    May 18, 2016 at 1:32 pm
    May 19, 2016 at 7:55 pm
  • Hello, I have written an R script which displays a bar chart using the ggplot2 library (please refer to code excerpt at the bottom of this e-mail). Although the bar chart is displayed OK in the ...
    May 18, 2016 at 7:32 am
    May 19, 2016 at 7:18 pm
  • Dear R help subscribers, I am working on a word cloud where in I want the words to appear in the same order as in the sentence/text. I only know&nbsp;the random.order -&nbsp;which plots words in ...
    Shaila shailajaShaila shailaja
    May 17, 2016 at 11:09 am
    May 19, 2016 at 2:32 pm
  • Hi all, I have a column in my df and I want to get quartiles for this column and then calculate mean for each and every quartile, here is my column: df$BR [1] 384 384 384 384 512 384 384 320 320 320 ...
    Chalabi ElaheChalabi Elahe
    May 16, 2016 at 12:31 pm
    May 16, 2016 at 2:07 pm
Group Navigation
period‹ prev | May 2016 | next ›
Group Overview
groupr-help @

245 users for May 2016

Jeff Newmiller: 56 posts David Winsemius: 41 posts Bert Gunter: 33 posts Jim Lemon: 32 posts Duncan Murdoch: 19 posts William Dunlap: 18 posts G Maubach: 16 posts Chalabi Elahe: 16 posts Tom Wright: 15 posts Muhammad Bilal: 13 posts Achim Zeileis: 11 posts Martin Maechler: 11 posts Michael Dewey: 10 posts Peter dalgaard: 10 posts Sarah Goslee: 10 posts Steven Yen: 10 posts Ulrik Stervbo: 9 posts Ivan Calandra: 8 posts MacQueen, Don: 8 posts Jan Kacaba: 7 posts
show more