Re: [R] Reading a datetime vector

2016-02-23 Thread Jim Lemon
Hi Doug, It is difficult for us to work out what is happening as we don't have access to a toy data set that we can play with. Excel spreadsheets are one of those things that you can't just attach to your email to the help list. If there is somewhere you can leave a _small_ Excel sample file (take

Re: [R] Reading a datetime vector

2016-02-23 Thread peter dalgaard
On 22 Feb 2016, at 18:30 , Jeff Newmiller wrote: > .. read the Excel documentation for representing dates... it is days since > December 30, 1899 on Windows. I seem to recall that that is actually only true for dates after March 1, 1900. (The reason that it is not counting December 31st being

[R] multiple linear regression with quadratic function

2016-02-23 Thread james.foadi
Dear R community, this is probably a well-known topic to some of you, but I am not well into it and would like some clarifications or even jus some suggestions. I have a quadratic scalar field: F(x,y)=K*exp(-(a*x^2+b*y^2+c*x*y)) I also have a random set of positive x,y values and related

Re: [R] multiple linear regression with quadratic function

2016-02-23 Thread peter dalgaard
That's pretty standard. Some call it "response surface analysis". Of course you need to check assumptions like homoscedasticity on the log scale, etc. It's not really an R question, specifically; so stats.stackexchange.com is a better avenue for more detailed discussions. As far as R goes, you j

Re: [R] GIS Analyses for Economics and Marketing

2016-02-23 Thread Roger Bivand
Domagoj Culinovic gmail.com> writes: > > I am Phdoctorate Candidate at Faculty of economics. > Also i am using GIS last 26 years, but lat 3 year i am focused on QGIS. > My earea of interests are GIS in Economics and marketing, and now i am > combine R and QGIS to have results. It may be more re

[R] .Internal(La_rs(x, FALSE)) crashes R after long (reproducible) script on windows only

2016-02-23 Thread Anthony Damico
hi, does anybody have a clue why .Internal(La_rs(x,FALSE)) is getting corrupted (actual detonation occurs within La_solve_cmplx within Lapack.c) on windows but not mac/unix? i have provided two (long) scripts that reproduce the problem and a third script modified to trigger the crash that unfortun

Re: [R] Password-Shiny

2016-02-23 Thread boB Rudis
What would cause you to think this mailing list is a free code-writing service? Perhaps post your question on Amazon's Mechanical Turk service? Alternatively: purchase a license for Shiny Server Pro. On Tue, Feb 23, 2016 at 12:45 AM, Venky wrote: > Hi R users, > > Please anyone help me how to cr

Re: [R] .Internal(La_rs(x, FALSE)) crashes R after long (reproducible) script on windows only

2016-02-23 Thread Duncan Murdoch
On 23/02/2016 7:49 AM, Anthony Damico wrote: hi, does anybody have a clue why .Internal(La_rs(x,FALSE)) is getting corrupted (actual detonation occurs within La_solve_cmplx within Lapack.c) on windows but not mac/unix? i have provided two (long) scripts that reproduce the problem and a third scr

Re: [R] Password-Shiny

2016-02-23 Thread Michael Sumner
On Wed, 24 Feb 2016 at 00:18 boB Rudis wrote: > What would cause you to think this mailing list is a free code-writing > service? Perhaps post your question on Amazon's Mechanical Turk > service? > > Alternatively: purchase a license for Shiny Server Pro. > > On Tue, Feb 23, 2016 at 12:45 AM, Ven

Re: [R] How to merge two tables

2016-02-23 Thread Michael Friendly
Hi Xiyan, You don't show your original data, so * If you produced `cross` and `age` tables by summing the counts from a single larger data set, go back to that and do it again. but now include age/ * Otherwise, you can use vcdeExtra::expand.dft()` on both of these data sets to expand to indi

[R] Warning Message With WordCloud

2016-02-23 Thread SHIVI BHATIA
Dear Team, I am working on Wordcloud package for one of my projects. While it running fine it is not showing the top most values in the output as it should. I have ran it earlier and it was fine but now there seems to be an issue. The wordcloud image shows the values which are appearing on

[R] Code for finding successive mean

2016-02-23 Thread Kwabena Fosu-Amankwah
Hi am Kwabena, I would be very grateful if someone can help me with the code or script on how to find successive mean at 30 minutes interval for the set of data below: Date/Time PR SW TP SM SHF CO2 28.11.2011 17:39:49 978.4 13.15 30.5 20 NA NA 28.11.2011 17:50:00 978.5 13.11 30.4 20 NA NA 28

Re: [R] Password-Shiny

2016-02-23 Thread Paweł Broda
You could try methods from this blog post: http://ipub.com/shiny-password-protect/ __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.or

[R] [R-pkgs] New Package: lrequire v0.1.3 - use modules to encapsulate and cache your R scripts

2016-02-23 Thread Rick Wargo
Dear R Users, I am happy to announce the initial release (v0.1.3) of lrequire, now available on CRAN. https://cran.r-project.org/web/packages/lrequire/ lrequire supports modularization of R Scripts, enabling encapsulation of information and c

[R] Query in R.

2016-02-23 Thread Rachana Bagde
Can anyone please solve this query. http://stackoverflow.com/questions/35577484/cpquery-of-bnlearn-gives-0-for-every-event-and-evidence-in-r Thanks. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE an

Re: [R] Query in R.

2016-02-23 Thread Duncan Murdoch
On 23/02/2016 7:38 AM, Rachana Bagde wrote: Can anyone please solve this query. http://stackoverflow.com/questions/35577484/cpquery-of-bnlearn-gives-0-for-every-event-and-evidence-in-r This is just spam. If you want to ask a question here, please take the time to formulate it properly. Du

Re: [R] mvProbit error message

2016-02-23 Thread PIKAL Petr
Hi It shall work, I do not see any problem in the code. So you have to persuade us that you checked your data properly e.g. by posting result of str(mydata) Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Betty > Betty > Sent: Tuesday

Re: [R] .Internal(La_rs(x, FALSE)) crashes R after long (reproducible) script on windows only

2016-02-23 Thread Anthony Damico
hi, thank you, at the point that the corruption exists, the line `.Internal(La_rs(x,FALSE))` actually breaks without needing `eigen` i have provided a reproducible example but agree it might not be minimal -- i did try removing various sections, each time the bug unfortunately vanished. note the

Re: [R] Code for finding successive mean

2016-02-23 Thread PIKAL Petr
Hi see ?cutPOSIXt help page. something like aggregate(yourdata, list(cut(datetime, "30 mins")), mean) shall do the trick. Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Kwabena > Fosu-Amankwah > Sent: Tuesday, February 23, 2016 7:24

Re: [R] multiple linear regression with quadratic function

2016-02-23 Thread Bert Gunter
Inline. -- 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 Tue, Feb 23, 2016 at 2:42 AM, wrote: > Dear R community, > this is probably a well-known topi

Re: [R] lme() - MEEM error (singularity in Backsolve) due to user-specified contrasts amount

2016-02-23 Thread Bert Gunter
You are probably overfitting. This *IS* a statistical and not an R issue, and so does not belong here. You MAY get useful help by posting on the R-SIG-mixed-models list, however. But PLEASE post in *plain text*, not HTML, as the posting guide asks. Cheers, Bert Bert Gunter "The trouble with havi

Re: [R] Warning Message With WordCloud

2016-02-23 Thread Boris Steipe
Assuming you have confirmed that your function parameters are correct, the problem likely lies with your data. Therefore a good strategy is to revert to a known good state and systematically work from there. Start from your working example and gradually change that into your real data, evaluatin

[R] mvProbit error message

2016-02-23 Thread Betty Betty
Dear All, I am running the mvProbit model to estimate five equation probit models. In my data all the dependent variables are dichotomous with values 0/1 and lables TRUE/FALSE. The explanatory variables are composed of catagorical and countinous variables. I specified the model as follows Result<-

[R] R Software Program Help

2016-02-23 Thread Ashley Porter
Good Morning, I wanted to reach out as I am looking to learn more about the R Project / R Statistical Programming software, particularly as it's been utilizing in power plant industries. I work in the energy industry and my clients are starting to look for Risk Analysts proficient in this tool, an

[R] axis break in R

2016-02-23 Thread Eike Marie Thaysen
Hello, I want to break the y-axis on one of my plots. I read this is possible- but apparently only with the plotrix package that requieres R version 3.6-1? I cannot seem to find that version on the R homepage.. it is a version you have to pay for? Are there any other possebilities to do it (I am cu

Re: [R] R Software Program Help

2016-02-23 Thread Nordlund, Dan (DSHS/RDA)
If you google "R Statistical Programming software" you will find all the information you could possibly want. In particular, for your purposes you should probably start with https://www.r-project.org/ and read the "About" section. Then follow other links as needed. Dan Daniel Nordlund, Ph

[R] R packages for Mac Users

2016-02-23 Thread Scott Colwell
Hello, Does anyone know if all the R packages that are available for Windows users are also available for Mac users? Thank you, Scott -- Scott R. Colwell, Ph.D. Associate Professor, Dept. of Mkt/Cons Studies Adjunct Professor, Dept. of Psychology University of Guelph Guelph, Ontario, Canada

Re: [R] R Software Program Help

2016-02-23 Thread John McKown
On Tue, Feb 23, 2016 at 10:02 AM, Ashley Porter < apor...@theplanetforward.com> wrote: > Good Morning, > > I wanted to reach out as I am looking to learn more about the R Project / R > Statistical Programming software, particularly as it's been utilizing in > power plant industries. I work in the

Re: [R] axis break in R

2016-02-23 Thread Federman, Douglas
The current version of R is 3.2.3 and is available on the website. You should update. The current version of plotrix is 3.6-1 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Eike Marie Thaysen Sent: Tuesday, February 23, 2016 11:00 AM To: r-help@r-pr

Re: [R] R packages for Mac Users

2016-02-23 Thread Marc Schwartz
> On Feb 23, 2016, at 11:10 AM, Scott Colwell wrote: > > > Hello, > > Does anyone know if all the R packages that are available for Windows users > are also available for Mac users? > > Thank you, > > Scott Hi, In general, yes, if the package is available from CRAN, but there are some

Re: [R] R Software Program Help

2016-02-23 Thread peter dalgaard
On 23 Feb 2016, at 17:02 , Ashley Porter wrote: > Good Morning, > > I wanted to reach out as I am looking to learn more about the R Project / R > Statistical Programming software, particularly as it's been utilizing in > power plant industries. I work in the energy industry and my clients are >

Re: [R] R packages for Mac Users

2016-02-23 Thread peter dalgaard
On 23 Feb 2016, at 18:10 , Scott Colwell wrote: > > Hello, > > Does anyone know if all the R packages that are available for Windows users > are also available for Mac users? > In a word: Yes. In two words: Yes, mostly. As long as a package doesn't rely on Windows-specific features, or o

Re: [R] R packages for Mac Users

2016-02-23 Thread Jeff Newmiller
"All" is a pretty stringent test for a herd of cats. If you constrain to packages on CRAN, there are currently about 300 binaries for Windows that don't show up in the Mac list, and about 40 that are in the Mac list but not the Windows list. There are about 8000 total. Many times the non match

Re: [R] R packages for Mac Users

2016-02-23 Thread peter dalgaard
> On 23 Feb 2016, at 19:12 , Jeff Newmiller wrote: > > "All" is a pretty stringent test for a herd of cats. Hehehe... [Fades to a grin, leaving only a paw print.] -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Pho

[R] Loading large .pxt and .asc datasets causes issues.

2016-02-23 Thread Torvon
Hi, I want to load a dataset into R. This dataset is available in two formats: .XPT and .ASC. The dataset is available at http://www.cdc.gov/brfss/annual_data/annual_2006.htm. They are about 40mb zipped, and about 500mb unzipped. I can get the .xpt data to load, using: > library(hmisc) > data <

Re: [R] Loading large .pxt and .asc datasets causes issues.

2016-02-23 Thread Jan van der Laan
First, the file does contain 302 columns; the variable layout (http://www.cdc.gov/brfss/annual_data/2006/varlayout_table_06.htm) contains 302 columns. So, reading the SASS file probably works correctly. Second, the read.asc function you use is for reading geographic raster files, not fixed wid

Re: [R] axis break in R

2016-02-23 Thread Jim Lemon
Hi Eike, I think that plotrix v3.6-1 should run on R v 3.1.2. Jim On Wed, Feb 24, 2016 at 4:11 AM, Federman, Douglas < douglas.feder...@utoledo.edu> wrote: > > The current version of R is 3.2.3 and is available on the website. You > should update. The current version of plotrix is 3.6-1 > > --

Re: [R] Loading large .pxt and .asc datasets causes issues.

2016-02-23 Thread Federman, Douglas
You might want to look at Anthony Damico's work at http://www.asdfree.com/search/label/behavioral%20risk%20factor%20surveillance%20system%20%28brfss%29 -- Better name for the general practitioner might be multispecialist. ~Martin H. Fischer (1879-1962) -Original Message- From: R-help [

Re: [R] Reading a datetime vector

2016-02-23 Thread Jim Lemon
Doug, We're getting warm. If we ask really nicely, will you tell us the URL of the "dropbox folder you are working on"? Jim On Wed, Feb 24, 2016 at 9:29 AM, D Wolf wrote: > In addition to my previous message, DF_extract_clean.R is the program in > the dropbox folder that I am currently working

Re: [R] Reading a datetime vector

2016-02-23 Thread Jim Lemon
Hi again, My apologies - I didn't see the other email. JIm On Wed, Feb 24, 2016 at 10:29 AM, Jim Lemon wrote: > Doug, > We're getting warm. If we ask really nicely, will you tell us the URL of > the "dropbox folder you are working on"? > > Jim > > > On Wed, Feb 24, 2016 at 9:29 AM, D Wolf wrot

[R] Order output list od TukeyHSD function by "p adj"

2016-02-23 Thread Sergio Fonda
Hello, It's already for several hours that I try to order the list obtained by the function TukeyHSD according to the variable "p adj" (in ascending order). Unfortunately, without success. In addition to following two lines of code, that offer the result but separately so do not correspond to the

Re: [R] Loading large .pxt and .asc datasets causes issues.

2016-02-23 Thread Anthony Damico
hi eiko, LaF is incompatible with survey data, that road is a dead-end. this code below will painlessly load brfss into R, review the link douglas sent for analysis examples and change `years.to.download <- ` to 2006 only if you just want a single year of microdata. glhf # install.packages( c("M

Re: [R] Reading a datetime vector

2016-02-23 Thread Jim Lemon
Hi Doug, I see what the problem is now. When your Excel file is read in with read.xlsx2, the DateTimeStamp is read as days since Microsoft's time epoch (see earlier posts on this). As these values are numeric, they cannot be converted in the same way as a human readable date/time string. The easies

Re: [R] Reading a datetime vector

2016-02-23 Thread Jeff Newmiller
You are overthinking this. The answer is in the help file for read.xls2. -- Sent from my phone. Please excuse my brevity. On February 23, 2016 7:19:38 PM PST, Jim Lemon wrote: >Hi Doug, >I see what the problem is now. When your Excel file is read in with >read.xlsx2, the DateTimeStamp is read a

[R] RStudio Crashes when using quantmod's chartSeries()

2016-02-23 Thread Hsiao-nan Cheung
Dear All, When I use quantmod's chartSeries() function, the RStudio crashes. The code is as below. library(quantmod) getSymbols("IBM") chartSeries(IBM) Very simple code... And the same function is working well in R Console (Rgui.exe), i.e. there is a plot in the default graphics de

Re: [R] RStudio Crashes when using quantmod's chartSeries()

2016-02-23 Thread Uwe Ligges
Thanks, but please report problems with RStudio to the RStudio support. Neither this list (to which RStudio emplyees may be listening, though) nor R-core can help in this case. Best, Uwe Ligges On 24.02.2016 07:30, Hsiao-nan Cheung wrote: Dear All, When I use quantmod's chartSeries() f

Re: [R] Order output list od TukeyHSD function by "p adj"

2016-02-23 Thread Jim Lemon
Hi Sergio, I couldn't get your example data to read in, so I have used the example in the help page: fm1 <- aov(breaks ~ wool + tension, data = warpbreaks) hsd.fit<-TukeyHSD(fm1, "tension", ordered = TRUE) hsd.fit$tension[order(hsd.fit$tension[,4]),] difflwr upr p adj L-

[R] issue -- Packages unavailable for R version 3.2.3

2016-02-23 Thread Sandeep Rana
Hi, I have newly installed R version 3.2.3 and experiencing an issue where the packages that I had been using in previous release aren't compatible in the latest release. I need you help to suggest how we could force the installation even if its not supported or what is the workaround to move ahea