Re: [R] My very first loop!! I failed. May I have some start-up aid?

2017-08-18 Thread Jeff Newmiller
The advice to use require is incorrect. The only time you should use require is if you are testing the return value from the require function AND you have a plan of what to do if the package is not available. 99% of the time raising an exception when the package is missing is the correct

Re: [R] My very first loop!! I failed. May I have some start-up aid?

2017-08-18 Thread Hasan Diwan
[answers inline] On 18 August 2017 at 20:08, Dagmar wrote: > > myframe<- data.frame (ID=c("Ernie", "Ernie","Ernie","Ernie"), > Timestamp=c("24.09.2012 08:00", "24.09.2012 09:00", "24.09.2012 10:00", > "25.09.2012 10:00"), Longitude=c("8.481","8.482","8.483","8.481"), >

[R] My very first loop!! I failed. May I have some start-up aid?

2017-08-18 Thread Dagmar
Dear all, I have a data similar to this: myframe<- data.frame (ID=c("Ernie", "Ernie","Ernie","Ernie"), Timestamp=c("24.09.2012 08:00", "24.09.2012 09:00", "24.09.2012 10:00", "25.09.2012 10:00"), Longitude=c("8.481","8.482","8.483","8.481"), Latitude=c("54.753","54.753","54.752","54.751") )

Re: [R] R Issues with packages

2017-08-18 Thread Zack Haney
Thanks Jeff I got the Bioconductor packages installed and tried googling the 65535 tried some things and still get the same error. On Fri, Aug 18, 2017 at 10:59 AM, Jeff Newmiller wrote: > You just need to READ the error messages and use Google. > > Don't try to

Re: [R] R Issues with packages

2017-08-18 Thread Jeff Newmiller
You just need to READ the error messages and use Google. Don't try to install tcltk. The other two packages are not available through CRAN... they are Bioconductor packages. (Not supported here... use Google.) And learn to post plain text in the future to avoid scrambling what you thought

[R] bquote question

2017-08-18 Thread Andras Farkas via R-help
Dear All, could you please provide input on the following: plot(1:10,main=paste("\n ","\nABCD","\n","\n","\n"),cex.main=1.3) a<-500 b<-12 mtext(bquote(bold(.(formatC(1.2*a,decimal.mark=",",digits=2,format="f")))~ " words "~bold(.(b))~" words"~"\n"~"\n")) as you

[R] R Issues with packages

2017-08-18 Thread Zack Haney
so I am trying to get my R setup to run this users package. Any help would be great THANKS devtools::install_github(repo = "dadrivr/ffanalytics") I get this devtools::install_github(repo = "dadrivr/ffanalytics") Downloading GitHub repo dadrivr/ffanalytics@master from URL

[R] help with stacked ggplot

2017-08-18 Thread Mary Rigdon
Hi, I am new to R and this is probably a very basic question but I can’t seem to figure out a solution. I am creating a stacked ggplot with the following data and code: PercentageData.csv looks like this: decision treatment percentage labtreatment defect 0 53.49 COMMON defect 1 78.00

Re: [R] installing package lme4

2017-08-18 Thread Doran, Harold
?install.packages On 8/18/17, 7:39 AM, "Lucy McMahon" wrote: >I am hoping to run a generalised linear mixed effect model but I don't >seem to have access to package lme4. > > >library (lme4) >Error in library(lme4) : there is no package called �lme4� > > >I'm

[R] installing package lme4

2017-08-18 Thread Lucy McMahon
I am hoping to run a generalised linear mixed effect model but I don't seem to have access to package lme4. library (lme4) Error in library(lme4) : there is no package called �lme4� I'm unsure of how to go about installing this package and I haven't been able to find much online either. I

Re: [R] Meta-regression of categorical variables

2017-08-18 Thread Michael Dewey
Dear Kammy You might get better responses on the mailing list dedicated to meta-analysis in R https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis Note you need to register first before posting. On 18/08/2017 10:18, Kammy Tang wrote: Dear metafor users, I am working on a

[R] "How to convert .rdata file into .csv or something else?" [SOLVED:Corrected version2]

2017-08-18 Thread y tanaka
Dear mailing list members, Sorry for the repeated posting, but I have to add two more things. 1) I changed the .Rdata into .rdata in the subject to avoid misunderstanding of readers. 2) To save data in csv file; > write.csv(WV6_Data_R, "input/ch2/WV6_Data_R_v_2016_01_01.csv") Best regards,

Re: [R] PAM Clustering

2017-08-18 Thread Sema Atasever
Grazie mille, So grateful for your kindness in answering questions. Regards. On Thu, Aug 17, 2017 at 8:50 PM, Germano Rossi wrote: > Sorry, I never use pam. In the help, you can see that pam require a > dataframe OR a dissimilarity matrix. If diss=FALSE then

[R] "How to convert .Rdata file into .csv or something else?" [SOLVED:Corrected version]

2017-08-18 Thread y tanaka
Dear mailing list members, A member found a problem of lines of codes in my last e-mail. I submit the correction to this mailing list as follows. In the final part of my last e-mail message, a csv file is created. But, I cannot open this file, so please ignore the following part.

Re: [R] A question about for loop

2017-08-18 Thread Boris Steipe
There are many ways to get the output you want, so your question is ill defined. But it is easy to see where your code goes wrong. And it should be easy for you to fix it. If you subset a vector with the '[' operator, this is like putting a vector of indices "into" the square brackets. So, to