Re: [R] nested for loop with data table

2017-05-03 Thread PIKAL Petr
Hi better to present us your data by dput, so they can be directly used. > dput(dat) dat <- structure(list(Num = 1:20, Color = structure(c(5L, 2L, 2L, 1L, 4L, 3L, 3L, 3L, 3L, 3L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 4L, 4L, 4L ), .Label = c("black", "green", "orange", "red", "yellow"), class = "factor"),

Re: [R] Non standard Beta Distribution

2017-05-03 Thread Collins Ochieng Onyanga
Hi, I would like to fit a non standard beta distribution with the two scale parameters and lower and upper boundaries to data like the one shown without normalizing it. [1] 37.50 46.79 48.30 46.04 43.40 39.25 38.49 49.51 40.38 36.98 40.00[12] 38.49 37.74 47.92 44.53 44.91 44.91 40.00 41.51 47.92

Re: [R] nested for loop with data table

2017-05-03 Thread Jeff Newmiller
You seem to be unaware of the "aggregate" data processing concept. There are many ways to accomplish aggregation, but I am not fluent in data.table methods but knowing the concept is the first step. Perhaps look closely at [1], or Google for data table aggregation yourself? [1] https://www.r-

Re: [R] Non standard Beta Distribution

2017-05-03 Thread David Winsemius
> On May 3, 2017, at 3:55 PM, Collins Ochieng Onyanga > wrote: > > On 4 May 2017 at 01:00, Collins Ochieng Onyanga wrote: > >> Hi, >> >> I am trying to fit fit a non standard Beta distribution to a data set but >> so far I have not succeeded. Can anyone help me with a code in R that can >>

Re: [R] RevoScale R / SparkLyr

2017-05-03 Thread David Winsemius
> On May 3, 2017, at 3:18 PM, Abhijeet Rajput > wrote: > > All, > > I am looking for some good tutorial for Revoscale That's a Microsoft product now. They are the ones to contact. > and Sparklyr, Its not capitalized. > I dont find > much online content > Can somebody please point me to goo

Re: [R] Non standard Beta Distribution

2017-05-03 Thread Collins Ochieng Onyanga
On 4 May 2017 at 01:00, Collins Ochieng Onyanga wrote: > Hi, > > I am trying to fit fit a non standard Beta distribution to a data set but > so far I have not succeeded. Can anyone help me with a code in R that can > do this. > > Thanks. -- Collins Ochieng onyaga AIMS Tanzania student 201

[R] RevoScale R / SparkLyr

2017-05-03 Thread Abhijeet Rajput
All, I am looking for some good tutorial for Revoscale and Sparklyr, I dont find much online content Can somebody please point me to good resources? Thanks Abhijeet Rajput [[alternative HTML version deleted]] __ R-help@r-project.org mailing li

Re: [R] RCommander issue

2017-05-03 Thread Jim Lemon
Hi Thambu (David?), While I like the misspelling of CRAN (there is a lot CRAMmed on it), could this be your problem? Jim On Thu, May 4, 2017 at 12:55 AM, thambu david via R-help wrote: > Dear AllI am learning R commander and have un-installed my earlier version of > R and installed the 3.4 vers

Re: [R] General Beta Distribution

2017-05-03 Thread David Winsemius
> On May 3, 2017, at 9:08 AM, Collins Ochieng Onyanga > wrote: > > Dear All, > > I hope you are doing well, I have a problem fitting the *general Beta > distribution* to my data. Any help will be highly appreciated. There may be people reading the list who will immediately know a function tha

Re: [R] adding counter to df by group

2017-05-03 Thread David Winsemius
> On May 3, 2017, at 11:24 AM, Davide Piffer wrote: > You should look at this result more closely. Its length is not the same length as the number of rows of the target of the attempted assignment. > unlist(miniblock_cong) You might try: red_congruent$miniblock <- ave( red_congruent$subject

Re: [R] adding counter to df by group

2017-05-03 Thread Jim Lemon
Hi Davide, You wouldn't be dealing with the Stroop test, would you? stroop.df<-data.frame(subject=rep(paste("S",1:10,sep=""),each=12), color=rep(c("R","G","B"),40),cong=rep(rep(c("C","I"),each=3),20)) stroop.df$colcong<-paste(stroop.df$color,stroop.df$cong,sep="") stroop.rc<-stroop.df[stroop.df$c

[R] Non standard Beta Distribution

2017-05-03 Thread Collins Ochieng Onyanga
Hello everyone, I am trying to fit fit a non standard Beta distribution to a data set but so far I have not succeeded. Can anyone help me with a code in R that can do this. Thanks. -- Collins Ochieng onyaga AIMS Tanzania student 2016/2017 Skype: collins7952 -- *AIMS-Tanzania* *DISCLAIMER*

[R] adding counter to df by group

2017-05-03 Thread Davide Piffer
I need to count the trials in an experiment, separately for each subject. I thought about using the function "by" but I could not manage to achieve this. Instead, I tried "split" and I got closer to a solution but still not getting there yet. The following code should create a variable "miniblock"

[R] General Beta Distribution

2017-05-03 Thread Collins Ochieng Onyanga
Dear All, I hope you are doing well, I have a problem fitting the *general Beta distribution* to my data. Any help will be highly appreciated. Thanks -- Collins Ochieng onyaga AIMS Tanzania student 2016/2017 Skype: collins7952 -- *AIMS-Tanzania* *DISCLAIMER*: The contents of this email and

Re: [R] nested for loop with data table

2017-05-03 Thread Ek Esawi
Thank you both Boris and Jim. Thank you, Boris, for advising to read the posting guide; I had and I just did. Jim’s idea is exactly what I want; however, I could not pass sset1, sset2, etc. to the j nested loop and collect the results in an vector. Here attached my code, file, and my question whi

[R] Error in glim.fit. Object 'fit' not found.

2017-05-03 Thread Tanmay Nath
Dear R experts, I am tring to run GAMLSS to model the association between the two variables (x,y) and I am getting the following error message: *** Initial fit*** GAMLSS-RS iteration 1: Global Deviance = -277.9826 GAMLSS-RS iteration 2: Global Deviance = -277.9826 *** Fitting BCCGo *** BCCGo fa

[R] RCommander issue

2017-05-03 Thread thambu david via R-help
Dear AllI am learning R commander and have un-installed my earlier version of R and installed the 3.4 version for windos. I have an older PC that runs on windows XP professionalThe problem is that when i try and work with R, when i set the CRAM mirror or choose a program to Install i keep gettin

[R] Do You Care About Your Website's Security?

2017-05-03 Thread Brandon Sheley
Hello Friend, I'm *Brandon Sheley* and I ran across your name on a forum or blog online. I've been offering web services for over a decade and just wanted to say Hi! Check out the a

Re: [R] Cannot load library(glmulti), because: Error: package ‘rJava’ could not be loaded

2017-05-03 Thread Bruce Ratner PhD
Jeff: Just want to follow up to thank you. All's good. Up and running. FYI: I thought I had Java because SAS needs Java. Unbeknownst to me, SAS changed over to their own "Java." So when I got that error message of "no rJava" I was confused. Thanks so much for your earnest reply and trouble shoo

Re: [R] Cannot load library(glmulti), because: Error: package ‘rJava’ could not be loaded

2017-05-03 Thread BR_email
Jeff: Yes, your trouble shooting was in target. I needed to install Java. I installed Java 64-bit. Things look okay, so far ( haven't run glmulti). Thanks, again. Bruce ~~~ package ‘glmulti’ successfully unpacked and MD5 sums checked The downloaded binary packages are in C:\Users\BruceRa

Re: [R] Cannot load library(glmulti), because: Error: package ‘rJava’ could not be loaded

2017-05-03 Thread BR_email
Jeff: Sorry, the previous email was accidentally sent as I was talking to SAS. Apparently, I do not have any Java in my system. I thought SAS required it, but no longer does. So I guess I will install Java. Which Java do I need to install, please? Bruce BR_email wrote: Jeff: Thanks for re

Re: [R] how apply.monthly() in package xts works

2017-05-03 Thread Joshua Ulrich
On Thu, Mar 9, 2017 at 9:03 PM, Joshua Ulrich wrote: > On Thu, Mar 9, 2017 at 3:46 PM, Joshua Ulrich wrote: >> On Thu, Mar 9, 2017 at 3:31 PM, Waichler, Scott R >> wrote: >>> Hi, >>> >>> I found that apply.monthly() in xts does not work as I expected in the case >>> of a sparse timeseries: >>>

Re: [R] Cannot load library(glmulti), because: Error: package ‘rJava’ could not be loaded

2017-05-03 Thread Jeff Newmiller
Since the problem is with rJava, why don't you tell us why you think you have Java or rJava working on your computer? Be aware that there are both 32-bit and 64-bit versions of the Java runtime, and one or the other is often missing though both versions of R are normally installed on Win64. --

[R] Cannot load library(glmulti), because: Error: package ‘rJava’ could not be loaded

2017-05-03 Thread BR_email
Hi R-helpers: Any assistance to get library(glmulti) on my PC/Windows 7, 64bit, would be appreciated. Bruce R> install.packages("glmulti") Installing package into ‘C:/Users/BruceRatner/Documents/R/win-library/3.3’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/bin/windows/con

Re: [R] finegray function in the survival package

2017-05-03 Thread Therneau, Terry M., Ph.D.
Your question is much like "what is in my pocket?" since the only possible answer is "how could I know?". You have some block of R code that produce the stated error, but we don't know what it is. One wild guess is that a death time which is <=0 will produce this error since that would lead to

Re: [R] cannot load .sav-files in R 3.4.0

2017-05-03 Thread Siouxsie
unfortunately not. i tried: devtools::install_github( "hadley/dplyr" ) and got this: Downloading GitHub repo hadley/dplyr@master from URL https://api.github.com/repos/hadley/dplyr/zipball/master Installing dplyr Installing 1 package: bindrcpp Installing package into ‘\\unetna01/mandersk$/Daten/R