Re: [R] R 3.4.0 problem installation

2017-04-24 Thread Berend Hasselman
> On 25 Apr 2017, at 08:21, catalin roibu wrote: > > Dear all, > > I have a problem with the newest R version. I'm trying to install a > specific package dplR how need the gpm package and I have this error on my > macbook (OS Sierra): > >> install.packages("dplR") > also installing the depende

[R] R 3.4.0 problem installation

2017-04-24 Thread catalin roibu
Dear all, I have a problem with the newest R version. I'm trying to install a specific package dplR how need the gpm package and I have this error on my macbook (OS Sierra): > install.packages("dplR") also installing the dependency ‘gmp’ Packages which are only available in source form, and may

Re: [R] asking for help

2017-04-24 Thread Bert Gunter
By 163863 "values" do you mean rows in the data frame? If so, please read about indexing in any online R tutorial or the Intro to R tutorial that ships with R. This is an absolutely basic R operation, and if you are unwilling or unable to put in the time to learn about it, you should probably consi

[R] asking for help

2017-04-24 Thread Saifuddin, Miah Mohammad
I have a data frame having 163863 values. I want to subset it so that each set has 6069 values in it. for example 1:6069 as first, 6070: 6070+6068 as second. how can I do that, preferably in a loop. TIA [[alternative HTML version deleted]] _

Re: [R] Frequency of Combinations

2017-04-24 Thread Boris Steipe
This can be easily done in base R. The solution below is pedestrian, transparent and explicit. Thus it's easy to debug and validate(!) each step. Prepare: (1) Save your Excel spreadsheet as a text file with tab-separated values. (2) Initialize a 128 * 128 matrix to hold your results. It should ha

Re: [R] Delayed evaluation / lazy expression evaluation

2017-04-24 Thread Bert Gunter
There is no way that I have the tenacity to wade through your verbiage (maybe other hardier souls will). However, it sounds like you are trying to reinvent wheels. I think you want: ?substitute. > f <- function(exp)substitute(exp) > f(1:100) 1:100 see also ?delayedAssign for direct manipulation o

Re: [R] Frequency of Combinations

2017-04-24 Thread Thierry Onkelinx
Dear Mustafa, I'd recommend the packages readxls to import the data, tidyr to transform the data into long format and dplyr to select the data. 1. read the data into R with read_excel() 2. transform sheet 1 into a long format with gather(). The result is one row for each patient / drug combinatio

[R] Delayed evaluation / lazy expression evaluation

2017-04-24 Thread Thomas Mailund
Hi, I’m playing around with ways of implementing lazy evaluation of expressions. In R, function arguments are evaluated as promises but expressions are evaluated immediately, so I am trying to wrap expressions in thunks—functions with no arguments that evaluate an expression—to get something th

Re: [R] GLMM for Combined experiments and overdispersed data

2017-04-24 Thread Thierry Onkelinx
Please don't cross post. You've send the message to the mixed models mailing list as well (which more appropriate). ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance Kliniekst

Re: [R] "Copy-pastable" output of 1000 plus variables

2017-04-24 Thread BR_email
David: Your code worked beautifully. This little ditty should be high-profile for those who work big data, which are virtually never accompanied with a data dictionary. This code is the first step to grab the data at large to bring it down in size. Excellent. Thank you. Bruce David L Carlso

Re: [R] "Copy-pastable" output of 1000 plus variables

2017-04-24 Thread BR_email
David: Sorry, of course I will show you the code: Copy-Pasteable PROC CONTENTS data=IN out = vars (keep = name type) noprint; run; PROC SQL noprint; select name into :varlist_is_here separated by ’ ’ from vars; quit; %put _global_ ; Bruce Ratner, Ph.D. The Significant Statistician™ (516) 791-3544