Re: [R] fit lognorm to cdf data

2017-07-10 Thread PIKAL Petr
Hi I thought that fitdistr is used when I have original data, something like dat <- rlnorm(1000) but I have just five values (proc, size) as showed in my example. Actually those data are similar like results from sieving for which I can use package sievetest but as they do not follow Rosin Ram

Re: [R] fit lognorm to cdf data

2017-07-10 Thread PIKAL Petr
Hi Great. I did not think that such combination is posssible. Thanks. Petr > -Original Message- > From: peter dalgaard [mailto:pda...@gmail.com] > Sent: Tuesday, July 11, 2017 1:11 AM > To: PIKAL Petr > Cc: r-help@r-project.org > Subject: Re: [R] fit lognorm to cdf data > > How about >

Re: [R] Help documentation of "The Studentized range Distribution"

2017-07-10 Thread Ursula Garczarek
Dear Peter and Jeff, I admit I was not precise in what I really wanted. It was more a report that the documentation is confusing, than really asking for help. Still, I was only 97% sure that it was not my fault, so I remained cautious. So, my suggestion would be to say under the header usage ju

Re: [R] fit lognorm to cdf data

2017-07-10 Thread peter dalgaard
How about proc <- c(0.9, 0.84, 0.5, 0.16, 0.1) size <- c(0.144, 0.172, 0.272, 0.481, 0.583) plot(size, proc, xlim=c(0,1), ylim=c(0,1)) fit<-nls(proc~plnorm(size, log(xmid), sdlog, lower=FALSE), start=list(xmid=0.2, sdlog=.1)) summary(fit) lines(fitted(fit)~size) -pd > On 10 Jul 2017, at 16:27 ,

Re: [R] fit lognorm to cdf data

2017-07-10 Thread Jeff Newmiller
* fitdistr? * it seems unusual (to me) to fit directly to the data with lognormal... fitting a normal to the log of the data seems more in keeping with the assumptions associated with that distribution. -- Sent from my phone. Please excuse my brevity. On July 10, 2017 7:27:47 AM PDT, PIKAL Pet

Re: [R] Problems with time formats when importing data using readHTMLTable

2017-07-10 Thread Jeff Newmiller
Not reproducible. [1][2][3] If our answers don't seem to apply to your situation, it will likely be because you did not explain your question clearly. Not plain text. This is a plain text mailing list, and the best-case scenario when you let your email program send HTML is that what you saw is

Re: [R] helix spring in R

2017-07-10 Thread Duncan Murdoch
On 10/07/2017 8:41 AM, Eliza B wrote: Dear useRs, Is there a way to draw helix spring in R of desired diameter and number of turns? Yes, use rgl's cylinder3d function. (Or lines3d if you don't want any volume.) Duncan Murdoch __ R-help@r-proje

Re: [R] helix spring in R

2017-07-10 Thread Jeff Newmiller
This is an excellent opportunity for you to tell us why rseeek.org and Google search results did not address your needs, which may either answer your question without our help or help us to understand your needs better. I will also comment that a "spring" is usually more complex than just a "h

Re: [R] PAM Clustering

2017-07-10 Thread Ulrik Stervbo
Hi Sema, read.csv2 use ',' as the decimal separator. Since '.' is used in your file, everything becomes a character which in turn makes pam complain that what you pass to the function isn't numeric. Use read.csv2("data.csv", dec = ".") and it should work. You can also use class(d) to check the c

Re: [R] add a color bar

2017-07-10 Thread David L Carlson
The .png file I've attached will show you how to send plain text messages with Yahoo mail. This mailing list is text only so that it can be used by virtually any email client anywhere in the world. Your attachment did not make the trip. The list is picky about attachments and accepts some graphi

[R] Problems with time formats when importing data using readHTMLTable

2017-07-10 Thread Cristina Silva
Hi, I am extracting positions data from the marine traffic website. The table has a "Timestamp" column which, in the browser, appears with the format -mm-dd HH:MM (UTC), e.g. 2017-07-10 14:04 (UTC). When I import the table, the same date "2017-07-10 14:04 (UTC)" appears as "149969650014996

[R] helix spring in R

2017-07-10 Thread Eliza B
Dear useRs, Is there a way to draw helix spring in R of desired diameter and number of turns? regards, Eliza [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/ma

[R] filtering of CO2 observation time series residuals using FFT

2017-07-10 Thread Yogesh Tiwari via R-help
Hi, I have CO2 observations time series, I can calculate residuals by removing seasonal cycle and trend. But how to filter residuals using Fast Fourier Transform (FFT) which transforms the data into the frequency domain. And then apply a low pass filter function to the frequency data, then transfo

[R] PAM Clustering

2017-07-10 Thread Sema Atasever
Dear Authorized Sir / Madam, I have an R script file in which it includes PAM Clustering codes: *when i ran R script i am getting this error:* *Error in pam(d, 10) : x is not a numeric dataframe or matrix.* *Execution halted* How can i fix this error? Thanks in advance. ​ data.csv

[R] add a color bar

2017-07-10 Thread Alaios via R-help
Hi all,the code you will find at the bottom of the screen creates a 3d diagram of antenna measurements. I am adding also to this Figure a color bar,and I wanted to ask you if I can add a color bar (which package?) that will scale as the windows is maximized. My current color bar is a bit too rou

[R] Revolutions blog: June 2017 roundup

2017-07-10 Thread David Smith via R-help
Since 2008, Microsoft (formerly Revolution Analytics) staff and guests have written about R every weekday at the Revolutions blog (http://blog.revolutionanalytics.com) and every month I post a summary of articles from the previous month of particular interest to readers of r-help. In case you miss

[R] fit lognorm to cdf data

2017-07-10 Thread PIKAL Petr
Dear all I am struggling to fit data which form something like CDF by lognorm. Here are my data: proc <- c(0.9, 0.84, 0.5, 0.16, 0.1) size <- c(0.144, 0.172, 0.272, 0.481, 0.583) plot(size, proc, xlim=c(0,1), ylim=c(0,1)) fit<-nls(proc~SSfpl(size, 1, 0, xmid, scal), start=list(xmid=0.2, scal=.1)

Re: [R] dplyr help

2017-07-10 Thread Jeff Newmiller
I am pretty sure that this is not a question about dplyr... it is a question about tidyr. Look at the help file ?tidyr::spread. If I understand your question (I may not, because you gave no example of input/output data), the answer is no, the column names come from the column named by the key

Re: [R] Help documentation of "The Studentized range Distribution"

2017-07-10 Thread peter dalgaard
Well, it is clear enough that the problem is in interpreting the documentation. However, when you claim you tested something, and found it inconsistent with tables, it would be advisable to back it up with examples! The description in the help files and in the sources is admittedly confusing. T

Re: [R] dplyr help

2017-07-10 Thread PIKAL Petr
Hi something like dcast(temp2, minuty~pokus) ? > dput(temp2) structure(list(pokus = structure(c(1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 5L, 5L, 6L, 6L, 7L, 7L, 8L, 8L ), .Label = c("T42", "T43", "T44", "T45", "T46", "T47", "T48", "T49"), class = "factor"), minuty = structure(

[R] dplyr help

2017-07-10 Thread Mangalani Peter Makananisa
HI all, Is it possible to use one column spread on multiple columns values. example spread( Key_col, value1:value7) spreading Key_col to variable value1, value2, ... Value7 Please advise, Kind regards Mangalani Peter Makananisa (5786) South African Revenue Service (SARS) - HO +2782 456 46

[R] Extract XMLAtrributeValue

2017-07-10 Thread Mohan.Radhakrishnan
Hi, I am trying to extract an attribute value which is like this. (e.g) class="whQuestion" The 'extract' function prints this. But I am not sure how to get "whQuestion" from that. The type of 'x' in extract is "character" [1] "XMLAttributeValue" class "whQuestion" attr(,"class") extrac