Re: [R] trainControl and train functions are not found in caret package

2016-05-07 Thread Jeff Newmiller
Reproducible example? At least whatever you did... and the output of sessionInfo(). Did you use library function to load it into memory? -- Sent from my phone. Please excuse my brevity. On May 7, 2016 5:40:26 PM PDT, Muhammad Bilal wrote: >Hi All, > > >Whilst using 'trainControl' and 'train

[R] trainControl and train functions are not found in caret package

2016-05-07 Thread Muhammad Bilal
Hi All, Whilst using 'trainControl' and 'train' functions in R studio, an error is raised stating that the functions are not found. I tried installing the caret function a few times, but the error persists. Can anyone guide me how to access these functions. Many Thanks and Kind Regards

Re: [R] month and output

2016-05-07 Thread Ashta
Thank you David! On Sat, May 7, 2016 at 12:18 AM, David Winsemius wrote: > >> On May 6, 2016, at 5:15 PM, Ashta wrote: >> >> Thank you very much David. >> >> So there is no general formal that works year all round. >> >> The first one work only Jan to Nov >> today <- Sys.Date() >> nextmo<- paste

Re: [R] error.crosses

2016-05-07 Thread Marc Girondot via R-help
Following the message of Bert Gunter, you should explain better what you have done (not everyone know that describeBy is a function of psych package) and what you want. You said "error bars"... but what "error bar"? (I don't like the term "error bars". Most often they are not errors but dispers

Re: [R] Truncreg package help

2016-05-07 Thread Achim Zeileis
On Fri, 6 May 2016, Philipp Schaper wrote: Dear R userers, I am running truncated regressions with the 'truncreg' package. My sample is large (6,000 observations), the data is left-truncated at 1 and the left tail of the data is heavily centered at 1. When I am running the regression I receive

Re: [R] Expand 80 columns terminal output

2016-05-07 Thread Bert Gunter
Actually, I think this may depend on context. options(width =...) directly controls only what is described in it's Help file. It does not necessarily control the width of lines in the console or whatever GUI you might be interacting with, nor necessarily the width at which many objects are printed,

Re: [R] Expand 80 columns terminal output

2016-05-07 Thread David Winsemius
> On May 7, 2016, at 9:31 AM, Marco Silva wrote: > > Hi R'ers, > > I noted that R breaks lines for any output greater than 80 chars, > Is there a way to expand this limit ? ?options options(width=120) -- David Winsemius Alameda, CA, USA __ R-hel

[R] Expand 80 columns terminal output

2016-05-07 Thread Marco Silva
Hi R'ers, I noted that R breaks lines for any output greater than 80 chars, Is there a way to expand this limit ? Thks -- Marco Arthur @ (M)arco Creatives __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailm

Re: [R] Issue replacing dataset values from read data

2016-05-07 Thread William Michels via R-help
1. It's not immediately clear why you need the line "temp <- subset(df, id == myid)" 2. The objects described by "temp$age", temp$agesmoke, and temp$yrsquit are all vectors. So temp.yrssmoke is also a vector. This means that when you replace, it should be with "<- temp.yrssmoke[i]", where "i" is t