Re: [R] plot.xmean.ordinaly vs plot() in package "rms"

2019-03-16 Thread Jeff Newmiller
Read up on S3 object orientation[1]. If you have an object x of class "xmean.ordinaly" then writing plot(x) will end up invoking the plot.xmean.ordinaly function rather than the plot.default function in base graphics. This is broadly true throughout R. [1] http://adv-r.had.co.nz/S3.html On

Re: [R] Problems trying to make a time series using NetCDF file

2019-03-16 Thread David W. Pierce
Hi there, the reason it's doing this is because there is no variable named "time" in the file. Obviously I need to patch the ncdf4 package so that it issues an/ understandable error message in this case instead of dying with a weird R error message. That is probably happening because there is a

Re: [R] Problems trying to make a time series using NetCDF file

2019-03-16 Thread Jeff Newmiller
You might have better luck on the R-sig-spatial mailing list. If you had provided a reproducible example ("reprex") then I might have tried to answer the question but I don't use these tools often enough to grasp the source of your problem based only on diagnostics. And even though they might

[R] Modularity Analysis in R, bipartite or rnetcarto package?

2019-03-16 Thread Chelsea Hinton
Hello, I have constructed a plant-pollinator network and would like to conduct a modularity analysis using the algorithm developed by Guimera and Amaral (2005) and the thresholds assigned by Olesen et al. (2007). In researching functions to accomplish this in R, I found the netcarto function in

[R] plot.xmean.ordinaly vs plot() in package "rms"

2019-03-16 Thread Kim Jacobsen
Would anyone be able to explain what the difference is between plot.xmean.ordinaly and plot() in the "rms" package? (for the purposes of testing the proportional odds assumption in ordinal models). In the package document (https://cran.r-project.org/web/packages/rms/rms.pdf) they seem both to be

[R] Problems trying to make a time series using NetCDF file

2019-03-16 Thread rain1290--- via R-help
Hi there, I am using climate model data in attempt to create a time series for a specific location. Getting longitude and latitude is fine. However, I am receiving the following error when using the "ncvar_get" function in trying to derive the "time" dimension: Error in

Re: [R] density vs. mass for discrete probability functions

2019-03-16 Thread Rui Barradas
Hello, Yes, there is even an old discussion on this on r-devel, dated August, 10 2013. See [1]. [1] https://r-project.markmail.org/search/?q=broken-link-in-docs-for-Binormial-functions#query:broken-link-in-docs-for-Binormial-functions+page:1+mid:rf6tbiokcdyai6el+state:results Hope this

Re: [R] density vs. mass for discrete probability functions

2019-03-16 Thread Stefan Schreiber
Thank you Peter and Spencer. That clears things up. Also since no one responded the second part of my question, I'm still wondering if it was noted that there is a hyperlink in the dbinom help file (?dbinom) that isn't directing correctly? Stefan On Fri, Mar 15, 2019, 07:37 peter dalgaard,

[R-es] Advice

2019-03-16 Thread SANTIAGO RAMOS OROPEZA
How to compare correlation between 2 monthly time series of equal sequence of years? [[alternative HTML version deleted]] ___ R-help-es mailing list R-help-es@r-project.org https://stat.ethz.ch/mailman/listinfo/r-help-es

Re: [R] Help with gsub function

2019-03-16 Thread Bill Poling
Good morning Peter, yes that works fine. My attempt was based on a google search that looked promising but was obviously more complicated than it needed to be. Thank you. WHP From: Peter Langfelder Sent: Friday, March 15, 2019 3:53 PM To: Bill Poling Cc: r-help (r-help@r-project.org)

Re: [R] Split a DF on Date column for each single year

2019-03-16 Thread Ek Esawi
Thank you Jeff and Rainer. I will try Jeff's idea using the sub string. function to extract the year and split on that. Thanks again to both--EK On Sat, Mar 16, 2019 at 1:52 AM Jeff Newmiller wrote: > > Couldn't you just use the substr function to pull the year out yourself to > make the

Re: [R] Split a DF on Date column for each single year

2019-03-16 Thread Rainer Schuermann
In your sample data.frame, MyDate and MyDes are factors; is that what you want? rs On Samstag, 16. März 2019 01:40:01 CET Ek Esawi wrote: > Hi All— > > I have a data frame with over 13000 rows and 4 columns. A mini data > frame is given at the bottom. I want to split the data frame into > lists