Re: [R] Question about using R sample datasets

2021-05-02 Thread Jeff Newmiller
You have already been reminded that none of us are lawyers. There is license 
text associated with every package and base R, and it is not necessarily the 
same for all parts of R, so there is no way for us to answer your question in 
its vague form and no way for you to rely our opinions even if you do clarify.

On May 2, 2021 1:38:49 AM PDT, Maja Analytics  
wrote:
>Thanks for the advice.
>
>What about R code? Is that free to share? I would use my own dataset or
>made up dataset, so I am only now interested what about R code, can I
>screenshot it and then explain what is on the photo?
>
>Maja
>
>ned, 2. svi 2021. u 01:17 David Winsemius 
>napisao
>je:
>
>> Any answer you get here will will have all the authority of "some guy
>on
>> the Internet", but my reading of the licenses is that as long as you
>give
>> proper credit that you can use any material in teaching or commercial
>> purposes AND derivative works are likewise copy-able on an open
>source
>> (FOSS) basis. You should read the LinkedIn TOS and make sure that
>posting
>> there is not subject to some sort of publisher's copyright. That
>might be a
>> violation fo the licensing for material copied from CRAN sources.
>> Acknowledgment alone might not be an acceptable use. You may need to
>seek
>> appropriate legal counsel or get opinions from the creators of the
>> licensing language, since there are a variety of license.
>>
>> David Winsemius, MD, (IANAL)
>>
>>
>> > On May 1, 2021, at 12:17 PM, Maja Analytics <
>> maja.analytics.b...@gmail.com> wrote:
>> >
>> > Hello!
>> >
>> > I would like to make tutorials for non-data scientists in R on
>Medium and
>> > as LinkedIn articles. Could you tell me if I can use R sample
>datasets (I
>> > would note the acknowledgements on the end) for that?
>> >
>> > Thanks in advance, kind regards,
>> > Maja
>> >
>> >   [[alternative HTML version deleted]]
>> >
>> > __
>> > 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.org/posting-guide.html
>> > and provide commented, minimal, self-contained, reproducible code.
>>
>>
>
>   [[alternative HTML version deleted]]
>
>__
>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.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

-- 
Sent from my phone. Please excuse my brevity.

__
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.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Package "hse" has been REPLACED by package "dbd".

2021-05-02 Thread Abbs Spurdle
Previously, I disliked some of R's names.
e.g. Action of the Toes.
But then later realized toes are really important.

I don't want to disagree with a 'reviewer'.
But I would say subtle references to literature and philosophy
demonstrate 'depth'.

Was your reviewer a member of the (A)merican (S)tatistical (S)ociety...?
Who came up with that name...?

It's all subjective really...


On Sat, May 1, 2021 at 10:39 AM Rolf Turner  wrote:
>
>
> A reviewer of a paper that I wrote, of which the "hse" package was
> a central consideration, thought that users might find the name "hse"
> ("hope springs eternal") to be indicative of a lack of seriousness.
>
> Consequently I have changed the name of the package to "dbd"
> ("discretised beta distribution").  The underlying distribution, on
> which the package is focussed, is now called "db" ("discretised beta").
>
> The "hse" package still exists, *only* in order to produce a message
> (when the package is loaded) to the effect that the package is
> deprecated and that users should install and utilse the dbd package
> instead.
>
> The dbd package includes a number of modifications which (it is to be
> hoped) make it an improvement over the hse package that it replaces.
>
> I would be grateful to anyone who points out any problems with or
> errors in the dbd package.
>
> cheers,
>
> Rolf Turner
>
> --
> Honorary Research Fellow
> Department of Statistics
> University of Auckland
> Phone: +64-9-373-7599 ext. 88276
>
> __
> 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.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
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.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Question about using R sample datasets

2021-05-02 Thread Maja Analytics
Thanks for the advice.

What about R code? Is that free to share? I would use my own dataset or
made up dataset, so I am only now interested what about R code, can I
screenshot it and then explain what is on the photo?

Maja

ned, 2. svi 2021. u 01:17 David Winsemius  napisao
je:

> Any answer you get here will will have all the authority of "some guy on
> the Internet", but my reading of the licenses is that as long as you give
> proper credit that you can use any material in teaching or commercial
> purposes AND derivative works are likewise copy-able on an open source
> (FOSS) basis. You should read the LinkedIn TOS and make sure that posting
> there is not subject to some sort of publisher's copyright. That might be a
> violation fo the licensing for material copied from CRAN sources.
> Acknowledgment alone might not be an acceptable use. You may need to seek
> appropriate legal counsel or get opinions from the creators of the
> licensing language, since there are a variety of license.
>
> David Winsemius, MD, (IANAL)
>
>
> > On May 1, 2021, at 12:17 PM, Maja Analytics <
> maja.analytics.b...@gmail.com> wrote:
> >
> > Hello!
> >
> > I would like to make tutorials for non-data scientists in R on Medium and
> > as LinkedIn articles. Could you tell me if I can use R sample datasets (I
> > would note the acknowledgements on the end) for that?
> >
> > Thanks in advance, kind regards,
> > Maja
> >
> >   [[alternative HTML version deleted]]
> >
> > __
> > 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.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
>

[[alternative HTML version deleted]]

__
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.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Plotting two time series in one graph

2021-05-02 Thread Rui Barradas

Hello,

Can you post sample data? For instance, the output of

dput(head(dovrez, 20))
dput(head(rqa_df_USD, 20))


Or maybe you could rbind the data.frames with one column telling which 
of Res or LAM the values come from.



Hope this helps,

Rui Barradas

Às 19:38 de 02/05/21, Baki UNAL via R-help escreveu:

Hi

I'm trying to plot two time series in one graph. I tried the following code:


p = ggplot() +
   geom_line(data = dovrez, aes(x = Date, y = Res), color = "blue") +
   geom_line(data = rqa_df_USD, aes(x = DATE, y = LAM), color = "red") +
   xlab('Dates') +
   ylab('Values')
print(p)

But I got the following error:

Hata: `mapped_discrete` objects can only be created from numeric vectors
Run `rlang::last_error()` to see where the error occurred.

Time indexes of my dataframes (dovrez, rqa_df_USD) are not same. First 
dataframe (dovrez) has 820 date points. Second dataframe (rqa_df_USD) has 75 
date points.

How can I plot these two data in one graph?

Best Regards
Baki Ünal

__
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.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



__
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.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Plotting two time series in one graph

2021-05-02 Thread Baki UNAL via R-help
Hi

I'm trying to plot two time series in one graph. I tried the following code:


p = ggplot() + 
  geom_line(data = dovrez, aes(x = Date, y = Res), color = "blue") +
  geom_line(data = rqa_df_USD, aes(x = DATE, y = LAM), color = "red") +
  xlab('Dates') +
  ylab('Values')
print(p)

But I got the following error:

Hata: `mapped_discrete` objects can only be created from numeric vectors
Run `rlang::last_error()` to see where the error occurred.

Time indexes of my dataframes (dovrez, rqa_df_USD) are not same. First 
dataframe (dovrez) has 820 date points. Second dataframe (rqa_df_USD) has 75 
date points.

How can I plot these two data in one graph?

Best Regards
Baki Ünal

__
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.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Question about using R sample datasets

2021-05-02 Thread David Winsemius
Again, the terms of the license govern the legalities. I don’t think you would 
need any further efforts at licensing your commentary. Screenshots or text 
copies would both be just copies and the appropriate citations would probably 
be all that were needed. I do not think your commentary or explanatory work 
would need to be considered FOSS or a copyleft license. There are many 
instances of commercial, copyrighted books that contain portions of R source 
code. Several businesses exist that sell accessories or packages that depend on 
but are not part of core R. Some of them seem to me to be skirting the line of 
legality but I don’t think there have been any cases brought before judicial 
authorities. So your plans seems completely safe and well inside accepted and 
legal boundaries to my understanding. 

David 

Sent from my iPhone

> On May 2, 2021, at 2:39 AM, Maja Analytics  
> wrote:
> 
> 
> Thanks for the advice.
> 
> What about R code? Is that free to share? I would use my own dataset or made 
> up dataset, so I am only now interested what about R code, can I screenshot 
> it and then explain what is on the photo?
> 
> Maja
> 
> ned, 2. svi 2021. u 01:17 David Winsemius  napisao je:
>> Any answer you get here will will have all the authority of "some guy on the 
>> Internet", but my reading of the licenses is that as long as you give proper 
>> credit that you can use any material in teaching or commercial purposes AND 
>> derivative works are likewise copy-able on an open source (FOSS) basis. You 
>> should read the LinkedIn TOS and make sure that posting there is not subject 
>> to some sort of publisher's copyright. That might be a violation fo the 
>> licensing for material copied from CRAN sources. Acknowledgment alone might 
>> not be an acceptable use. You may need to seek appropriate legal counsel or 
>> get opinions from the creators of the licensing language, since there are a 
>> variety of license.
>> 
>> David Winsemius, MD, (IANAL)
>> 
>> 
>> > On May 1, 2021, at 12:17 PM, Maja Analytics 
>> >  wrote:
>> > 
>> > Hello!
>> > 
>> > I would like to make tutorials for non-data scientists in R on Medium and
>> > as LinkedIn articles. Could you tell me if I can use R sample datasets (I
>> > would note the acknowledgements on the end) for that?
>> > 
>> > Thanks in advance, kind regards,
>> > Maja
>> > 
>> >   [[alternative HTML version deleted]]
>> > 
>> > __
>> > 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.org/posting-guide.html
>> > and provide commented, minimal, self-contained, reproducible code.
>> 

[[alternative HTML version deleted]]

__
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.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.