Re: [R] [FORGED] Re: How create columns for squared values from previous columns?

2017-04-29 Thread C W
On Sat, Apr 29, 2017 at 10:40 AM, Bert Gunter wrote: > Also: > > "I was just a bit frustrated that R wouldn't generate dummy variable > names on the fly." > > That is false. See ?lm and ?model.matrix > I am not sure what you mean. I thought if there is a three level dummy variable, then it woul

Re: [R] [FORGED] Re: How create columns for squared values from previous columns?

2017-04-29 Thread C W
I thought it's just deleting and reassigning those specific columns. I guess I don't know R as much as I think I do. :( On Sat, Apr 29, 2017 at 4:06 AM, Göran Broström wrote: > > > On 2017-04-29 06:45, Mike C wrote: > >> Thanks Rolf. I was just a bit frustrated that R wouldn't generate >> dummy

Re: [R] Matrix-list table conversion+nrwos with specefic values.

2017-04-29 Thread Jeff Newmiller
Please use reply-all to make sure the mailing list is included so others can learn from the discussion. Yes, you can use row and column names. Have you tried it? -- Sent from my phone. Please excuse my brevity. On April 29, 2017 2:44:06 PM PDT, abo dalash wrote: >Many thanks Jeff for your ra

Re: [R] Finding nrows with specefic values&converting a matrix into a table

2017-04-29 Thread David L Carlson
First. Do not use html messages, only plain text. Second. Provide a small example data set, preferably using dput(). Just printing your data can hide important information. Third. Read the documentation. Your first example does not return a logical vector at all: > dput(mydata) structure(list(C

Re: [R] Matrix-list table conversion+nrwos with specefic values.

2017-04-29 Thread Jeff Newmiller
Break it down. If you have a scalar value val and you want to know if it is in a vector vec, using val==vec gets you a logical vector as long as vec. You can use val %in% vec and you get a logical vector as long as val (e.g. 1). If val is a vector of, say, length 2, then you will get a length 2

Re: [R] Error with installed.packages with R 3.4.0 on Windows

2017-04-29 Thread Jean-Claude Arbaut
Thank you all for the help. I will try the patch. Best regards, Jean-Claude Arbaut 2017-04-29 0:33 GMT+02:00 Duncan Murdoch : > On 28/04/2017 5:58 PM, Uwe Ligges wrote: > >> >> >> On 28.04.2017 19:10, Dimitri Liakhovitski wrote: >> >>> When I click on "r patched snapshot build" here >>>

Re: [R] Matrix-list table conversion+nrwos with specefic values.

2017-04-29 Thread Bert Gunter
I am not a private (or free!) consultant. Post to the r-help if your question concerns R. -- Bert Bert Gunter On Sat, Apr 29, 2017 at 8:51 AM, abo dalash wrote: > Hi dear Bert > > > I'm trying to identify number of rows containing 2 specific values. > > I tried : which(mydata == 566,235), but

Re: [R] read list of binary files and explore them

2017-04-29 Thread Boris Steipe
Given that, you can be certain that your file contains more than one or two numbers, thus your way of reading it must be wrong. B. > On Apr 29, 2017, at 11:34 AM, Ragia . wrote: > > > files size is 7682 kb > > sorry for multiple emails > > Ragia > > > > > ___

Re: [R] read list of binary files and explore them

2017-04-29 Thread Bert Gunter
1. Unless your comment is OT or personal, always reply to the list. 2. What does your OS say about file size? 3. Beyond this, I cannot help. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed

Re: [R] How to download the Shiny tutorial video

2017-04-29 Thread Bert Gunter
It is OT! Why not post on the RStudio forum? -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sat, Apr 29, 2017 at 1:02 AM, Christofer Bogaso wrote: > H

Re: [R] [FORGED] Re: How create columns for squared values from previous columns?

2017-04-29 Thread Bert Gunter
Also: "I was just a bit frustrated that R wouldn't generate dummy variable names on the fly." That is false. See ?lm and ?model.matrix -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his

Re: [R] [FORGED] Re: How create columns for squared values from previous columns?

2017-04-29 Thread Göran Broström
On 2017-04-29 06:45, Mike C wrote: Thanks Rolf. I was just a bit frustrated that R wouldn't generate dummy variable names on the fly. Also, another question, if I want to put column 5 at column 3, dat[, 3:5] <- dat[, c(5,3,4)] It does not work, why? It "works", but you need to shuffle the

[R] How to download the Shiny tutorial video

2017-04-29 Thread Christofer Bogaso
Hi again, I was trying to learn Shiny from Shiny tutorial "Teach yourself Shiny" available in https://shiny.rstudio.com/tutorial/. I intend to download this entire video for offline use, however could not find any option available to doing so. I use slow internet connection, therefore it is usefu