[R] identify duplicate entries in data frame and calculate mean

2016-05-24 Thread Matthew
report the mean to get this: Length Identifier 337 A234 180 B123 198 B225 Matthew __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide ht

Re: [R] identify duplicate entries in data frame and calculate mean

2016-05-24 Thread Matthew
<-data.frame(Length=c(321,350,340,180,198), > ID=c(rep('A234',3),'B123','B225') ) > $ x %>% group_by(ID) %>% summarise(m=mean(Length)) > > > > On Tue, May 24, 2016 at 3:46 PM, Matthew > <mailto:mccorm...@molbio.mgh

Re: [R] identify duplicate entries in data frame and calculate mean

2016-05-24 Thread Matthew
Thanks, Tom. I was making a mistake looking at your example and that's what my problem was. Cool answer, works great. Thank you very much. Matthew On 5/24/2016 4:23 PM, Tom Wright wrote: > Don't see that as being a big problem. If your data grows then dplyr > supports connect

Re: [R] identify duplicate entries in data frame and calculate mean

2016-05-24 Thread Matthew
Thank you very much, Dan. These work great. Two more great answers to my question. Matthew On 5/24/2016 4:15 PM, Nordlund, Dan (DSHS/RDA) wrote: You have several options. 1. You could use the aggregate function. If your data frame is called DF, you could do something like with(DF

[R] use value in variable to be name of another variable

2016-07-11 Thread Matthew
ame of 265 observations of 2666 variables, if this data structure makes things easier. My initial attempts are not working. Starting with a test data structure that is a little simpler I have tried: for (i in 1:4) { ATG <- tTargTFS[1, i] assign(cat(ATG)

Re: [R] use value in variable to be name of another variable

2016-07-11 Thread Matthew
Hi Jim, Wow ! And it does exactly what I was looking for. Thank you very much. That assign function is pretty nice. I should become more familiar with it. Matthew On 7/11/2016 5:59 PM, Jim Lemon wrote: Hi Matthew, This question is a bit mysterious as we don't know what the object

Re: [R] use value in variable to be name of another variable

2016-07-11 Thread Matthew
Hi Rolf, Thanks for the warning. I think because my initial efforts used the assign function, that Jim provided his solution using it. Any suggestions for how it could be done without assign() ? Matthew On 7/11/2016 6:31 PM, Rolf Turner wrote: On 12/07/16 10:13, Matthew wrote: Hi

[R] tcltk2 entry box

2015-07-08 Thread Matthew
would like a way for the user to input that information as the script ran. Matthew McCormack __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] tcltk2 entry box

2015-07-10 Thread Matthew
do with them. Matthew On 7/9/2015 5:31 PM, Greg Snow wrote: If you want you script to wait until you have a value entered then you can use the tkwait.variable or tkwait.window commands to make the script wait before continuing (or you can bind the code to a button so that you enter the value

Re: [R] need help with excel data

2015-01-21 Thread Matthew
plit columns. You may have to do some 'cleaning' of individual cells, such as removing leading and/or trainling spaces. A lot of this can be one with the ASAP Utilities 'Text' pull down menu. Matthew On 1/21/2015 3:31 PM, Dr Polanski wrote: Hi all! Sorry to bother you, I am tr

[R] creating a dataframe with full_join and looping over a list of lists

2019-03-21 Thread Matthew
me, I want to know the name of the original list     # the column was made from. Matthew [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/

[R] creating a dataframe with full_join and looping over a list of lists.

2019-03-21 Thread Matthew
the same row. # I could rename the colname to 'AGI' so that I can join by 'AGI', # but then I would lose the name of the list. # In the final dataframe, I want to know the name of the original list # the column was made from. Matthew

Re: [R] creating a dataframe with full_join and looping over a list of lists.

2019-03-25 Thread Matthew
, Jim, for the work you put into this. Matthew On 3/21/2019 11:01 PM, Jim Lemon wrote: External Email - Use Caution Hi Matthew, Remember, keep it on the list so that people know the status of the request. I couldn't get this to work with the "_source_info_" variable.

[R] working on a data frame

2014-07-24 Thread Matthew
me started ? Matthew __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] working on a data frame

2014-07-25 Thread Matthew
rom Perl to Python or Java etc., but it seems like R programming works differently. Matthew On 7/25/2014 12:06 AM, Peter Alspach wrote: Tena koe Matthew " Column 10 contains the result of the value in column 9 divided by the value in column 8. If the value in column 8==0, then the division

Re: [R] working on a data frame

2014-07-28 Thread Matthew
ackground noise' in the measurement process, but it is somewhat arbitrary. Matthew On 7/28/2014 2:43 AM, PIKAL Petr wrote: Hi I like to use logical values directly in computations if possible. yourData[,10] <- yourData[,9]/(yourData[,8]+(yourData[,8]==0)) Logical values are automagi

[R] find the data frames in list of objects and make a list of them

2014-08-13 Thread Matthew
. Which objects are data frames ? How to then make a list of these data frames. A second question: is this the best way to make a list of data frames without having to manually type c(dataframe1, dataframe2, ...) ? Matthew __ R-help@r-project.org

Re: [R] find the data frames in list of objects and make a list of them

2014-08-13 Thread Matthew
t various times of the day, so I want to automate the process so it does not need anyone to manually sit at the computer and type the list of data frames. Matthew On 8/13/2014 3:06 PM, jim holtman wrote: > Here is a function that I use that might give you the res

Re: [R] find the data frames in list of objects and make a list of them

2014-08-13 Thread Matthew
something like: dplyr::rbind_all(list of data frames), but when I try dplyr::rbind_all(lsDataFrame(ls())), I get the error: object at index 1 not a data.frame. So, I am going to have to learn some more about lists in R before proceding. Thank you for your help and code. Matthew Matthew On 8

Re: [R] find the data frames in list of objects and make a list of them

2014-09-04 Thread Matthew
go. Matthew On 8/13/2014 7:40 PM, William Dunlap wrote: > Previously you asked >> A second question: is this the best way to make a list >> of data frames without having to manually type c(dataframe1, dataframe2, >> ...) ? > If you use 'c' there you

[R] change default installation of R

2014-10-30 Thread Matthew
get if I just type at the command line: /usr/local/R-3.1.1/bin/R. Matthew [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/

[R] transpose and split dataframe

2019-04-30 Thread Matthew
header of column 2 and AT2G85403 is row 1 of column 2, etc.   I have tried playing around with strsplit(TF2list[2:2]) and strsplit(as.character(TF2list[2:2]), but I am getting nowhere. Matthew __ R-help@r-project.org mailing list -- To UNSUBSCRIBE

[R] Fwd: Re: transpose and split dataframe

2019-04-30 Thread Matthew
ith the greatest number of hits. The full joins I can do with dplyr, but getting up to that point seems rather difficult. This would get me what my ultimate goal would be; each Regulator is a column name (152 columns) and a given row has either NA or the same hit.    This seems ve

Re: [R] Fwd: Re: transpose and split dataframe

2019-05-01 Thread Matthew
at a time from each entry in the character matrix, but have not got anything near working yet. Matthew On 4/30/2019 6:29 PM, David L Carlson wrote > If you read the data frame with read.csv() or one of the other read() > functions, use the asis=TRUE argument to prevent conversion to facto

Re: [R] Fwd: Re: transpose and split dataframe

2019-05-06 Thread Matthew
ate it with the column name ATG.  David's result complements Jim's, and both end up being very helpful to me.   Thanks again to both of you for your time and help. Matthew On 5/2/2019 8:40 PM, Jim Lemon wrote: > External Email - Use Caution > > Hi again, >

Re: [R] Contour lines in a persp plot

2013-05-17 Thread Matthew
Thanks a lot, that is all i want. If someone is interessed, see the code below panel.3d.contour <- function(x, y, z, rot.mat, distance, nlevels = 20, zlim.scaled, ...) # les3 points de suspension pour dire les autres paramètres sont ceux données par défaut { add.line <- trel

[R] Save intermediate result in a same file

2013-10-01 Thread Matthew
Hello everybody, i have to save a 100 iteration computation in a file every 5 iterations until the end. I first give a vector A of 100 elements for the 100 iterations and i want to update A every 5 iterations. I use "save" but it doesn't work. Someone has an idea, i need a help Cheers. -

[R] fwrite() not found in data.table package

2017-10-02 Thread Matthew Keller
a a namespace (and not attached): [1] tools_3.2.0 chron_2.3-47 tcltk_3.2.0 -- Matthew C Keller Asst. Professor of Psychology University of Colorado at Boulder www.matthewckeller.com [[alternative HTML version deleted]] __ R-help@r-project.org mailing l

Re: [R] fwrite() not found in data.table package

2017-10-02 Thread Matthew Keller
ble example (check it with package reprex) and try again here, or > ask one of the maintainers of that package. > -- > Sent from my phone. Please excuse my brevity. > > On October 2, 2017 8:56:46 AM PDT, Matthew Keller > wrote: > >Hi all, > > > >I used to use fwri

Re: [R] tcltk2 entry box

2015-07-08 Thread Matthew McCormack
Wow ! Very nice. Thank you very much, John. This is very helpful and just what I need. Yes, I can see that I should have paid attention to tcltk before going to tcltk2. Matthew On 7/8/2015 8:37 PM, John Fox wrote: Dear Matthew, For file selection, see ?tcltk::tk_choose.files or ?tcltk

[R] setting up R -- VM Fusion, WIndows7

2015-07-30 Thread Matthew Johnson
Hi, As i need R to speak to Bloomberg (and big only runs on windows), i'm running windows 7 via VM Fusion on my mac. I think i am having permission problems, as i cannot use install.packages, and cannot change .libPaths via either a .Rprofile, or Profile.site. I've posted more detail in this sup

[R] simple question - mean of a row of a data.frame

2015-02-11 Thread Matthew Keller
m = 0) : argument is not numeric or logical: returning NA I get that rock[2,] is itself a data.frame of mode list, but why the inconsistency between functions? How can you figure this out from, e.g., ?mean ?sum Thanks in advance, Matt -- Matthew C Keller Asst. Professor of Psychology University of Colora

[R] Defining Variables from a Matrix for 10-Fold Cross Validation

2018-10-09 Thread matthew campbell
me across that specific message before, and am not exactly sure how to interpret its meaning. What exactly is this error message trying to tell me? Any suggestions or insights are appreciated! Thank you all, Matthew Campbell > library (ElemStatLearn) > library(kknn) > data(zip.train)

[R] Define pch and color based on two different columns

2019-04-09 Thread Matthew Snyder
ilter rule match" Thanks, Matt *Matthew R. Snyder* *~* PhD Candidate University Fellow University of Toledo Computational biologist, ecologist, and bioinformatician Sponsored Guest Researcher at NOAA PMEL, Seattle, WA. matthew.snyd...@rockets.utoledo.edu msnyder...@gmail.co

Re: [R] Define pch and color based on two different columns

2019-04-09 Thread Matthew Snyder
for single plots in ggplot. Maybe I should contact the authors of lattice and see if this is something they can help me with or if they would like to add this as a feature in the future... Matt *Matthew R. Snyder* *~* PhD Candidate University Fellow University of Toledo Computational

Re: [R] Define pch and color based on two different columns

2019-04-09 Thread Matthew Snyder
unique in the whole plot. But when you add cyl as a factor. Those two points are only unique within their respective panels, and not across the whole plot. Matt *Matthew R. Snyder* *~* PhD Candidate University Fellow University of Toledo Computational biologist, ecologist, and

Re: [R] Define pch and color based on two different columns

2019-04-09 Thread Matthew Snyder
I tried this too: xyplot(mpg ~ wt | cyl, data=mtcars, # groups = carb, subscripts = TRUE, col = as.factor(mtcars$gear), pch = as.factor(mtcars$carb) ) Same problem... *Matthew R. Snyder* *~* PhD Candidate University Fellow University of Toledo

Re: [R] Define pch and color based on two different columns

2019-04-09 Thread Matthew Snyder
You are not late to the party. And you solved it! Thank you very much. You just made my PhD a little closer to reality! Matt *Matthew R. Snyder* *~* PhD Candidate University Fellow University of Toledo Computational biologist, ecologist, and bioinformatician Sponsored Guest

Re: [R] working on a data frame

2014-07-24 Thread Matthew McCormack
On 7/24/2014 8:52 PM, Sarah Goslee wrote: > Hi, > > Your description isn't clear: > > On Thursday, July 24, 2014, Matthew <mailto:mccorm...@molbio.mgh.harvard.edu>> wrote: > > I am coming from the perspective of Excel and VBA scripts, but I >

Re: [R] reshape: melt and cast

2015-09-01 Thread Matthew Pickard
don't understand > exactly what you want, but does sum work? If there is more than one record > for a given set of factors the sum is the sum of the counts. If only one > record, then the sum is the same as the original number. > > On Tue, Sep 1, 2015 at 10:00 AM, Matthew Pick

[R] fast way to create composite matrix based on mixed indices?

2015-09-17 Thread Matthew Keller
or loop would be prohibitively slow. I may resort to unix tools and use a shell script, but wanted to first see if this is doable in R in a fast way. Thanks in advance! Matt -- Matthew C Keller Asst. Professor of Psychology University of Colorado at Boulde

Re: [R] fast way to create composite matrix based on mixed indices?

2015-09-18 Thread Matthew Keller
d <- cbind(rep(index[,2], ind_len), ind) > # > # new indices > new.ind <- cbind(rep(index[,1], ind_len), ind) > # > # create the new matrix > result <- matrix(NA_integer_, max(index[,1]), max(index[,4])) > # > # fill the new matrix > result[new.ind] <- old.mat

[R] Why does residuals.coxph use naive.var?

2017-03-02 Thread Matthew Burgess
Hi all, I noticed that the scaled Schoenfeld residuals produced by residuals.coxph(fit, type="scaledsch") were different from those returned by cox.zph for a model where robust standard errors have been estimated. Looking at the source code for both functions suggests this is because residuals.cox

Re: [R] 64-bit R on Mac OS X 10.4.5

2008-07-26 Thread Matthew Keller
zlib \ > --with-blas='-framework vecLib' --with-lapack && \ > make -j4 && \ > make check && \ > make install > cd ..when I try to run it by typing R, it gives me the following error: > -bash: R: command not found > > > Can any body help m

[R] tryCatch

2008-08-31 Thread Redding, Matthew
Hi All R-Gurus, I am trying to debug a program, and I think tryCatch will help. The functions involved process through so many times before I encounter the error, things are a bit slow to use debug and browser(). I've read the help file and postings on conditions, and am still having trouble

[R] RGoogleDocs: getDocs() - "problems connecting to get the list of documents"

2009-08-14 Thread Blackett, Matthew
ing this? Is it maybe a problem at the google end? Matthew Blackett Researcher King's College London http://geography.kcl.ac.uk/micromet/MBlackett/ [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://

[R] Video demo of using svSocket with data.table

2009-08-20 Thread Matthew Dowle
Dear r-help, If you haven't already seen this then : http://www.youtube.com/watch?v=rvT8XThGA8o The video consists of typing at the console and graphics, there is no audio or slides. Please press the HD button and maximise. Its about 8 mins. Regards, Ma

[R] Plotting point text-labels with lattice splom

2009-09-01 Thread Jockers Matthew
rowname in the original data set. so, something like this gets me the labels I want > labs<-substr(rownames(mydata),1,6) My trouble then comes in figuring out how to get these labels to "attach" to the corresponding points in the plot. Thanks. Matt -- Matthew Jockers Stanford Univ

[R] R help:

2009-09-11 Thread Matthew Fantle
length of zero for (say) depth = 1.4, or highres.depth[141]. but when i type in the value 1.4, I get the proper answer. Any idea what is going on here? thanks Matt ______ Matthew S. Fantle Assistant Professor Department of Geosciences Penn State Univ

Re: [R] data.table evaluating columns

2010-03-03 Thread Matthew Dowle
o have to say that you have as well, and perhaps how long ago too would be helpful. For r-forge projects I usually send any question to everyone on the project (easy to find) or if they have a list then to that. HTH Matthew "Tom Short" wrote in message news:fd27013a1003021718w409acb32

Re: [R] data.table evaluating columns

2010-03-03 Thread Matthew Dowle
r-forge.r-project.org/pipermail/datatable-commits/ doesn't > appear to be correct. Or just directly sending an email to all of you? > > Thanks again, > Rob > > > > On Wed, Mar 3, 2010 at 6:05 AM, Matthew Dowle > wrote: > >> >> I'd go a bit furthe

Re: [R] Three most useful R package

2010-03-03 Thread Matthew Dowle
lp to vote ?! The better solution is right there: http://crantastic.org/ Matthew "Dieter Menne" wrote in message news:1267626882999-1576618.p...@n4.nabble.com... > > > Rob Forler wrote: >> >> And data.table because it does aggregation about 50x times faster t

Re: [R] ifthen() question

2010-03-05 Thread Matthew Dowle
t is not a complaint of you though, as that advice is not in the posting guide. Matthew "AC Del Re" wrote in message news:85cf8f8d1003040735k2b076142jc99b7ec34da87...@mail.gmail.com... > Hi All, > > I am using a specialized aggregation function to reduce a dataset with > mu

Re: [R] Nonparametric generalization of ANOVA

2010-03-05 Thread Matthew Dowle
k not to follow the posting guide. That is my own personal view, not a statistical one backed up by any evidence. Matthew "Frank E Harrell Jr" wrote in message news:4b913880.9020...@vanderbilt.edu... > Gabor Grothendieck wrote: >> I am happy to answer posts to r-help re

Re: [R] Nonparametric generalization of ANOVA

2010-03-05 Thread Matthew Dowle
at one was taken. Its rather difficult to be on a moon, let alone inside it. Matthew "John Sorkin" wrote in message news:4b91068702cb00064...@medicine.umaryland.edu... > The sad part of this interchanges is that Blue Sky does not seem to be > amiable to suggestion. He, or

Re: [R] fit a gamma pdf using Residual Sum-of-Squares

2010-03-08 Thread Matthew Dowle
Thanks for making it quickly reproducible - I was able to see that message in English within a few seconds. The start has x=86, but the data is also called x. Remove x=86 from start and you get a different error. P.S. - please do include the R version information. It saves time for us, and we l

Re: [R] IMPORTANT - To remove the null elements from a vector

2010-03-09 Thread Matthew Dowle
tion. All this applies to all us. When asking for help, and when giving help. Matthew wrote in message news:of1a8063a1.fc14f5ff-onc12576e1.00466053-c12576e1.00466...@uniroma1.it... > > I have a vector that have null elements. How to remove these elements? > For example: > x=[10 0

Re: [R] speed

2010-03-10 Thread Matthew Dowle
Your choice of subject line alone shows some people that you missed some small details from the posting guide. The ability to notice small details may be important for you to demonstrate in future. Any answer in this thread is unlikely to be found by a topic search on subject lines alone since

Re: [R] Strange result in survey package: svyvar

2010-03-10 Thread Matthew Dowle
This list is the wrong place for that question. The posting guide tells you, in bold, to contact the package maintainer first. If you had already done that, and didn't hear back from him, then you should tell us, so that we know you followed the guide. "Corey Sparks" wrote in message news:

[R] leaps error

2010-03-10 Thread Matthew Scholz
R version: 2.10.0 platform: i486-pc-linux-gnu I'm trying to perform model selection from a data.frame object (creatively named "data") using the leaps function, and I run across the following error: > leaps(data[,3:7], data[,1], nbest = 10) Error in leaps.setup(x, y, wt = wt, nbest = nbest, nvmax

Re: [R] Forecasting with Panel Data

2010-03-11 Thread Matthew Dowle
m. You can build up your reputation again very quickly. With the kindest of regards, Matthew "Ricardo Gonçalves Silva" wrote in message news:df406bd9dbe644a9b8c0642a3c3f8...@ricardopc... > Dear Users, > > Can I perform panel data (fixed effects model) out of sample fo

Re: [R] [R-SIG-Mac] How to interrupt an R process that hangs

2010-03-15 Thread Matthew Keller
le many years ago) creates leaks and > unstable states. > > Cheers, > Simon > > > >> Google searching suggests no solution, timeline, or anything, but the >> problem has been annoying users for at least twelve years: >> http://tolstoy.newcastle.edu.au/R/help/97

Re: [R] [R-SIG-Mac] How to interrupt an R process that hangs

2010-03-15 Thread Matthew Keller
;) Anyway, all your kill statements merely kill R, script included, which doesn't really do what I'd like. Thus, summary of responses: Question: "How do I interrupt an R process that's taking too long?" Answer: "You don't. Kill R. And don't make mistak

[R] Problem specifying Gamma distribution in lme4/glmer

2010-03-20 Thread Matthew Giovanni
Dear R and lme4 users- I am trying to fit a mixed-effects model, with the glmer function in lme4, to right-skewed, zero-inflated, non-normal data representing understory grass and forb biomass (continuous) as a function of tree density (indicated by leaf-area). Thus, I have tried to specify a Gam

Re: [R] Merge data frame and keep unmatched

2009-07-13 Thread Matthew Dowle
Or if you need it to be fast, try data.table. X[Y] is a join when X and Y are both data.tables. X[Y] is a left join, Y[X] is a right join. 'nomatch' controls the inner/outer join i.e. what happens for unmatched rows. This is much faster than merge(). "Gabor Grothendieck" wrote in message

Re: [R] How to order an data.table by values of an column?

2009-07-14 Thread Matthew Dowle
If the question really meant to say "data.table" (i.e. package "data.table") then its easier than the data.frame answer. dt = data.table(Categ=c(468,351,0,234,117),Perc=c(31.52,27.52,0.77,22.55,15.99)) dt[order(Categ)] Notice there is no dt$ required before dt$Categ. Also note the comma is opti

[R] Memory errors when using QCA package

2009-07-22 Thread Matthew Gwynne
th) : cannot allocate vector of length 2130706560 However, looking at the memory usage, I seem to have far more than 2GB free. Is there some kind of built-in limit on the size of the heap in R? If so, is there some way I can extend this? Does anyone have any insight into this? Perhaps I am

Re: [R] If else statements

2010-03-23 Thread Matthew Dowle
Paradis : 6.1 Loops and vectorization 4. Eric Raymond's essay "How to Ask Questions The Smart Way" http://www.catb.org/~esr/faqs/smart-questions.html. HTH Matthew "tj" wrote in message news:1269325933723-1678705.p...@n4.nabble.com... > > Hi everyone! > May I req

Re: [R] Mosaic

2010-03-24 Thread Matthew Dowle
When you click search on the R homepage, type "mosaic" into the box, and click the button, do the top 3 links seem relevant ? Your previous 2 requests for help : 26 Feb : Response was SuppDists. Yet that is the first hit returned by the subject line you posted : "Hartleys table" 22 Feb : Res

Re: [R] translating SQL statements into data.table operations

2010-03-25 Thread Matthew Dowle
ease do follow up with us (myself and Tom Short cc'd are the main developers) off list and one of us will be happy to help further. Matthew "Nick Switanek" wrote in message news:772ec1011003241351v6a3f36efqb0b0787564691...@mail.gmail.com... > I've recently stumbled

Re: [R] NA values in indexing

2010-03-26 Thread Matthew Dowle
The type of 'NA' is logical. So x[NA] behaves more like x[TRUE] i.e. silent recycling. > class(NA) [1] "logical" > x=101:108 > x[NA] [1] NA NA NA NA NA NA NA NA > x[c(TRUE,NA)] [1] 101 NA 103 NA 105 NA 107 NA > x[as.integer(NA)] [1] NA HTH Matthew &

Re: [R] Combing

2010-03-29 Thread Matthew Dowle
org/doc/contrib/Short-refcard.pdf. 3. Eric Raymond's essay http://www.catb.org/~esr/faqs/smart-questions.html. e.g. you posted to r-help 10 times so far, 9 of the 10 subjects were either a single word, or a single function name. HTH Matthew "Val" wrote in message news:cdc083ac10

[R] single quotes and double quotes in a system() command. What to do?

2010-03-29 Thread Matthew Keller
yfile > outfile") and this won't either: system("awk '{$3=$4='';gsub(' ','');print}' myfile > outfile") Can anyone help me out? I'm sure there's an obvious solution. Thanks, Matt -- Matthew C Keller Asst. Professor of P

Re: [R] Error "grid must have equal distances in each direction"

2010-03-31 Thread Matthew Dowle
the wrong place for that question. Please read the posting guide to find out the correct place. Its a question about a package. HTH, Matthew "maddy" wrote in message news:1269974076132-1745651.p...@n4.nabble.com... > > Hello All, > > Can anyone please help me on th

Re: [R] Question about 'logit' and 'mlogit' in Zelig

2010-03-31 Thread Matthew Dowle
Abraham, This appears to be your 3rd unanswered post to r-help in March, all 3 have been about the Zelig package. Please read the posting guide and find out the correct place to send questions about packages. Then you might get an answer. HTH Matthew "Mathew, Abraham T" wrote

Re: [R] zero standard errors with geeglm in geepack

2010-03-31 Thread Matthew Dowle
You may not have got an answer because you posted to the wrong place. Its a question about a package. Please read the posting guide. "miriza" wrote in message news:1269886286228-1695430.p...@n4.nabble.com... > > Hi! > > I am using geeglm to fit a Poisson model to a timeseries of count data as >

Re: [R] GEE for a timeseries of count (one cluster)

2010-03-31 Thread Matthew Dowle
Contact the authors of those packages ? "miriza" wrote in message news:1269981675252-1745896.p...@n4.nabble.com... > > Hi! > > I was wondering if there were any packages that would allow me to fit a > GEE > to a single timeseries of counts so that I could account for > autocorrelation > in the

Re: [R] mcmcglmm starting value example

2010-03-31 Thread Matthew Dowle
Apparently not, since this your 3rd unanswered thread to r-help this month about this package. Please read the posting guide and find out where you should send questions about packages. Then you might get an answer. "ping chen" wrote in message news:975148.47160...@web15304.mail.cnb.yahoo.c

Re: [R] GLM / large dataset question

2010-03-31 Thread Matthew Dowle
ing glm correctly or not. You could provide the result of object.size(), and dim() on your data rather than explaining it in words. No reply often, but not always, means you haven't followed some detail of the posting guide or haven't followed this : http://www.catb.org/~esr/faqs/smar

Re: [R] Adding RcppFrame to RcppResultSet causes segmentation fault

2010-04-01 Thread Matthew Dowle
Rob, Please look again at Romain's reply to you on 19th March. He informed you then that Rcpp has its own dedicated mailing list and he gave you the link. Matthew "R_help Help" wrote in message news:ad1ead5f1003291753p68d6ed52q572940f13e1c0...@mail.gmail.com... > Hi, > &

Re: [R] Adding RcppFrame to RcppResultSet causes segmentation fault

2010-04-01 Thread Matthew Dowle
think the problem is fixed on the Rcpp 0.7.11 version (on cran incoming) Romain Le 01/04/10 17:47, Matthew Dowle a écrit : > > Rob, > Please look again at Romain's reply to you on 19th March. He informed you > then that Rcpp has its own dedicated mailing list and he gave you the &g

Re: [R] nlrq parameter bounds

2010-04-01 Thread Matthew Dowle
packages though, over 40 of the 664 on r-forge, have dedicated help/devel/forum lists hosted on r-forge. No reply from r-help often, but not always, means you haven't followed some detail of the posting guide or haven't followed this : http://www.catb.org/~esr/faqs/smart-questions.html. H

Re: [R] memory error

2010-04-06 Thread Matthew Dowle
: (1*4 + 4*8)*19758564/1024^3 = 0.662GB Also try sqldf to do the join. Matthew "Sharpie" wrote in message news:1270102758449-1747733.p...@n4.nabble.com... > > > Janet Choate-2 wrote: >> >> Thanx for clarification on stating my problem, Charlie. >> >&g

Re: [R] match function or "=="

2010-04-08 Thread Matthew Dowle
Please install v1.3 from R-forge : install.packages("data.table",repos="http://R-Forge.R-project.org";) It will be ready for CRAN soon. Please follow up on datatable-h...@lists.r-forge.r-project.org Matthew "bo" wrote in message news:1270689586866-1755876.p...@

Re: [R] Code is too slow: mean-centering variables in a dataframebysubgroup

2010-04-08 Thread Matthew Dowle
ding edge) : https://r-forge.r-project.org/plugins/scmsvn/viewcvs.php/*checkout*/branch2/inst/doc/intro.pdf?rev=68&root=datatable HTH Matthew "Dimitri Liakhovitski" wrote in message news:r2rdae9a2a61004071314xc03ae851n4c9027b28df5a...@mail.gmail.com... Yes, Tom's solution is ind

[R] Any chance R will ever get beyond the 2^31-1 vector size limit?

2010-04-09 Thread Matthew Keller
nely the case today. *If* it's possible to get around this limit, then I'd like to know whether the R Development Team takes seriously the needs of large data users, or if they feel that (perhaps not mutually exclusively) developing such capacity is best left up to ad hoc R packages and al

[R] Interpreting factor*numeric interaction coefficients

2010-04-12 Thread Matthew Carroll
go about doing this? Is the reported standard error that for the overall slope for that factor level, or is the actual standard error a function of the standard error of var1 and that of the interaction? Any help with this would be much appreciated, Matthew Carroll ### example code resp <-

Re: [R] Any chance R will ever get beyond the 2^31-1 vector size limit?

2010-04-15 Thread Matthew Keller
within the next few years. Best, Matt On Fri, Apr 9, 2010 at 6:36 PM, Duncan Murdoch wrote: > On 09/04/2010 7:38 PM, Matthew Keller wrote: >> >> Hi all, >> >> My institute will hopefully be working on cutting-edge genetic >> sequencing data by the Fall of 2010.

Re: [R] sum specific rows in a data frame

2010-04-20 Thread Matthew Dowle
.org";) require(data.table) dt = as.data.table(df) t3 <- system.time(zz3 <- dt[, list(sumflt=sum(fltval), sumint=sum (intval)), by=id]) Matthew On Thu, 15 Apr 2010 13:09:17 +, hadley wickham wrote: > On Thu, Apr 15, 2010 at 1:16 AM, Chuck wrote: >> Depending on the size of t

[R] multiple paired t-tests without loops

2010-04-24 Thread Matthew Finkbeiner
how to do it faster? thank you kindly, Matthew Finkbeiner "Sample""C1""C2""PermN" 158perm1 143perm1 164perm1 226perm1 231perm1 274perm1 1

[R] multiple paired t-tests without loops

2010-04-24 Thread Matthew Finkbeiner
how to do it faster? thank you kindly, Matthew Finkbeiner "Sample" "C1" "C2" "PermN" 1 5 8 perm1 1 4 3 perm1 1 6 4 perm1 2 2 6 perm1 2 3

[R] how to make read in a vector of 0s and 1s with no space between them

2010-04-25 Thread Matthew Keller
plish this? Thanks in advance! Matt -- Matthew C Keller Asst. Professor of Psychology University of Colorado at Boulder www.matthewckeller.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] how to make read in a vector of 0s and 1s with no space between them

2010-04-25 Thread Matthew Keller
Hi all, Quickly received an answer off the list. To do this is easy. Pull it in using e.g., scan(). Then use strsplit: z <- '10001011010010' strsplit(z,'') On Sun, Apr 25, 2010 at 10:52 AM, Matthew Keller wrote: > Hi all, > > Probably a rudimentary question. I

Re: [R] multiple paired t-tests without loops

2010-04-26 Thread Matthew Finkbeiner
Yes, I suspect that I will end up using a sampling approach, but I'd like to use an exact test if it's at all feasible. Here are two samples of data from 3 subjects: Sample SubjC1 C2 44 1 0.0093 0.0077 44 2 0.0089 0.0069 44 3 0.051 0.0432 44 4

Re: [R] Confusing concept of vector and matrix in R

2010-04-26 Thread Matthew Keller
oject.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >&g

Re: [R] Size limitations for model.matrix?

2010-04-28 Thread Matthew Keller
ments ) is intended for named > recipients only and may contain privileged or confidential information which > is > not to be disclosed. If you received this communication by mistake please > destroy all copies. > __ > R-help@r-proje

Re: [R] Using plyr::dply more (memory) efficiently?

2010-04-29 Thread Matthew Dowle
I don't know about that, but try this : install.packages("data.table", repos="http://R-Forge.R-project.org";) require(data.table) summaries = data.table(summaries) summaries[,sum(counts),by=symbol] Please let us know if that returns the correct result, and if its memo

Re: [R] Using plyr::dply more (memory) efficiently?

2010-04-29 Thread Matthew Dowle
"Steve Lianoglou" wrote in message news:t2ybbdc7ed01004290812n433515b5vb15b49c170f5a...@mail.gmail.com... > Thanks for directing me to the data.table package. I read through some > of the vignettes, and it looks quite nice. > > While your sample code would provide answer if I wanted to just > c

[R] Calculating Random Effects Coefficients from lmer

2009-10-21 Thread Matthew Schneider
Hello all, I am new to the list serve but hope to contribute what I can. For now, however, I hope to tap into all your knowledge about mixed effects models. Currently, I am running a mixed effects model on a time series panel data. For this model I want to find out the fixed and random effect for

[R] ARMAtoMA

2009-11-10 Thread Matthew Pietrzykowski
Hello R Users! I have a question about the output of ARMAtoMA when used to calculate the variance of a model.  I have a mixed model of the form ARMA(1,1).  The actual model takes the form: X(t) = 0.75X(t-12) + a(t) - 0.4a(t-1) Given that gamma(0) takes the form [(1 + theta^2 - 2*theta*phi)/(1-ph

  1   2   3   4   5   >