Re: [R] How long does it take to learn the R programming language?

2022-09-28 Thread Jeff Newmiller
I am still learning it 20yrs in. Doesn't stop me from plowing on with 
interesting problems, though.

On September 28, 2022 2:36:14 PM PDT, Jim Lemon  wrote:
>Given some of the questions that are posted to this list, I am not
>sure that there is an upper bound to the estimate.
>
>Jim
>
>__
>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] How long does it take to learn the R programming language?

2022-09-28 Thread Avi Gross
So is the proper R answer simply Inf?

On Wed, Sep 28, 2022, 5:39 PM John Kane  wrote:

> + 1
>
> On Wed, 28 Sept 2022 at 17:36, Jim Lemon  wrote:
>
> > Given some of the questions that are posted to this list, I am not
> > sure that there is an upper bound to the estimate.
> >
> > Jim
> >
> > __
> > 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.
> >
>
>
> --
> John Kane
> Kingston ON Canada
>
> [[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] How long does it take to learn the R programming language?

2022-09-28 Thread John Kane
+ 1

On Wed, 28 Sept 2022 at 17:36, Jim Lemon  wrote:

> Given some of the questions that are posted to this list, I am not
> sure that there is an upper bound to the estimate.
>
> Jim
>
> __
> 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.
>


-- 
John Kane
Kingston ON Canada

[[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] How long does it take to learn the R programming language?

2022-09-28 Thread Jim Lemon
Given some of the questions that are posted to this list, I am not
sure that there is an upper bound to the estimate.

Jim

__
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] How to obtain a consistent estimator with a binary response model with endogenous explanatory variables?

2022-09-28 Thread John Fox

Dear John (again),

I was surprised that you were unable to find an existing R function that 
estimates a probit model by IV and so I tried a Google search for 
"probit instrumental variables R", which turned up the ivprobit package 
as the first hit. That package is also mentioned in the Econometrics 
CRAN taskview .


The model fit by the ivprobit() function in the ivprobit package is a 
bit more general than the one in Wikipedia (at least by my quick reading 
of both) in that it permits more than one endogenous explanatory variable.


Best,
 John

John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
web: https://socialsciences.mcmaster.ca/jfox/

On 2022-09-28 3:47 p.m., John Fox wrote:

Dear John,

The Wikipedia page to which you refer appears to have all the 
information you need to write your own straightfoward R program for the 
2SLS or ML estimator for a probit model.


I hope this helps,
  John

On 2022-09-28 8:50 a.m., Sun, John wrote:

Dear All,

I stumbled on a Wikipedia page describing the Two stage least-squares 
with a probit model with implementing a consistent estimator in binary 
variable regression.
How do I implement this method in R? It is related to instrumental 
variables estimator. I looked in ivreg and plm package and found 
nothing I think related.

https://en.wikipedia.org/wiki/Binary_response_model_with_continuous_endogenous_explanatory_variables

Best regards,
John

__
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] Converting Character date to Dates in r

2022-09-28 Thread Jim Lemon
Hi Admire,
Your attachment didn't get through, although CSV format should. The
code you included seems a very roundabout way to extract a series of
dates as character strings and as there is no assignment of return
values in some lines, is unlikely to work. Perhaps if you send just a
few of the original strings, someone can answer your question.

Jim

On Thu, Sep 29, 2022 at 4:02 AM Admire Tarisirayi Chirume
 wrote:
>
> Hello, i hope this email finds you well. Kindly help me to format dates
> shown as character to dates using as.Dates.
>
> Attached herewith is my data in excel csv format.
>
> The following is the  r-code i have used in my analysis:
>
>
> setwd("Z:/2022/September/Inflation forecasts")
> inflation<-read.csv("Inflation_forecasts_1.csv")
> attach(inflation)
> inflation[,1:2 ] #subsetting the dataframe
> inflation.df<-inflation[,1:2]
> attach(inflation.df)
> #Renaming variables
> inflation<- rename(inflation.df,
>cpi = CPI,
>year=period)
>
> #subsetting data April 2020 to current
> inflation.2<-data.frame(inflation[-c(1:135),])
> Defining variables for use in the analysis
> attach(inflation.2)
>
> t <- year
> class(inflation.2$cpi)
> inflation.2$cpi <- as.numeric(as.character(inflation.2$cpi))
> Y <- cpi
> sapply(inflation.2, class)
>
> format(as.Date(inflation.2$period), "%Y-%m")
>
>
>
> Thank you in advance.
>
> Admire
>
>
>
>
> Alternative email: addtar...@icloud.com/tchir...@rbz.co.zw
> Skype: admirechirume
> Call: +263773369884
> whatsapp: +818099861504
> __
> 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] Converting Character date to Dates in r

2022-09-28 Thread Rui Barradas

Hello,

Can you post sample data? Please post the output of

dput(head(inflation.2$period))

Hope this helps,

Rui Barradas

Às 18:42 de 28/09/2022, Admire Tarisirayi Chirume escreveu:

Hello, i hope this email finds you well. Kindly help me to format dates
shown as character to dates using as.Dates.

Attached herewith is my data in excel csv format.

The following is the  r-code i have used in my analysis:


setwd("Z:/2022/September/Inflation forecasts")
inflation<-read.csv("Inflation_forecasts_1.csv")
attach(inflation)
inflation[,1:2 ] #subsetting the dataframe
inflation.df<-inflation[,1:2]
attach(inflation.df)
#Renaming variables
inflation<- rename(inflation.df,
cpi = CPI,
year=period)

#subsetting data April 2020 to current
inflation.2<-data.frame(inflation[-c(1:135),])
Defining variables for use in the analysis
attach(inflation.2)

t <- year
class(inflation.2$cpi)
inflation.2$cpi <- as.numeric(as.character(inflation.2$cpi))
Y <- cpi
sapply(inflation.2, class)

format(as.Date(inflation.2$period), "%Y-%m")



Thank you in advance.

Admire




Alternative email: addtar...@icloud.com/tchir...@rbz.co.zw
Skype: admirechirume
Call: +263773369884
whatsapp: +818099861504
__
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] How to obtain a consistent estimator with a binary response model with endogenous explanatory variables?

2022-09-28 Thread John Fox

Dear John,

The Wikipedia page to which you refer appears to have all the 
information you need to write your own straightfoward R program for the 
2SLS or ML estimator for a probit model.


I hope this helps,
 John

On 2022-09-28 8:50 a.m., Sun, John wrote:

Dear All,

I stumbled on a Wikipedia page describing the Two stage least-squares with a 
probit model with implementing a consistent estimator in binary variable 
regression.
How do I implement this method in R? It is related to instrumental variables 
estimator. I looked in ivreg and plm package and found nothing I think related.
https://en.wikipedia.org/wiki/Binary_response_model_with_continuous_endogenous_explanatory_variables

Best regards,
John

__
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.

--
John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
web: https://socialsciences.mcmaster.ca/jfox/

__
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] fortune nomination WAS: Re: How long does it take to learn the R programming language?

2022-09-28 Thread Hasan Diwan
A minute to learn, a lifetime to master? -- H

On Wed, 28 Sept 2022 at 11:03, Berry, Charles 
wrote:

> Aha!
> CCB
>
> > On Sep 27, 2022, at 6:08 PM, Rolf Turner 
> wrote:
> >
> >
> > On Mon, 26 Sep 2022 11:14:57 +0800
> > Turritopsis Dohrnii Teo En Ming  wrote:
> >
> >> Subject: How long does it take to learn the R programming language?
> >>
> >> Good day from Singapore,
> >>
> >> How long does it take to learn the R programming language?
> >
> > How long is a piece of string? :-)
> >
> > 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.
>


-- 
OpenPGP: https://hasan.d8u.us/openpgp.asc
If you wish to request my time, please do so using
*bit.ly/hd1AppointmentRequest
*.
Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest
*.

Sent
from my mobile device
Envoye de mon portable

[[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.


[R] fortune nomination WAS: Re: How long does it take to learn the R programming language?

2022-09-28 Thread Berry, Charles
Aha!
CCB

> On Sep 27, 2022, at 6:08 PM, Rolf Turner  wrote:
> 
> 
> On Mon, 26 Sep 2022 11:14:57 +0800
> Turritopsis Dohrnii Teo En Ming  wrote:
> 
>> Subject: How long does it take to learn the R programming language?
>> 
>> Good day from Singapore,
>> 
>> How long does it take to learn the R programming language?
> 
> How long is a piece of string? :-)
> 
> 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] Converting Character date to Dates in r

2022-09-28 Thread Admire Tarisirayi Chirume
Hello, i hope this email finds you well. Kindly help me to format dates
shown as character to dates using as.Dates.

Attached herewith is my data in excel csv format.

The following is the  r-code i have used in my analysis:


setwd("Z:/2022/September/Inflation forecasts")
inflation<-read.csv("Inflation_forecasts_1.csv")
attach(inflation)
inflation[,1:2 ] #subsetting the dataframe
inflation.df<-inflation[,1:2]
attach(inflation.df)
#Renaming variables
inflation<- rename(inflation.df,
   cpi = CPI,
   year=period)

#subsetting data April 2020 to current
inflation.2<-data.frame(inflation[-c(1:135),])
Defining variables for use in the analysis
attach(inflation.2)

t <- year
class(inflation.2$cpi)
inflation.2$cpi <- as.numeric(as.character(inflation.2$cpi))
Y <- cpi
sapply(inflation.2, class)

format(as.Date(inflation.2$period), "%Y-%m")



Thank you in advance.

Admire




Alternative email: addtar...@icloud.com/tchir...@rbz.co.zw
Skype: admirechirume
Call: +263773369884
whatsapp: +818099861504
__
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] How to simulate data where the covariate has large non-zero covariance with the residual and fourth moments of regressors may not exist?

2022-09-28 Thread Sun, John
Dear All,

I am writing to ask how to simulate data where the covariate has a 
large-non-zero covariance with the model residual and/or the regressors do not 
have finite fourth moments for regression analysis. 

I want to do some empirical monte-carlo simulations for continuous dependent 
variable, binary dependent variable, ordinal, categorical dependent variables 
that demonstrate loss of consistency when the covariate has a covariance 
non-zero with the residual for a future possible teaching project and for my 
own sanity to believe that instrumental variable estimator from Econometrics 
improves level-one fixed effects estimates. A source on stack-exchange with 15 
votes says that when the finite fourth moments of regressors do no exist, the 
estimate of variance is non-consistent, 
https://stats.stackexchange.com/questions/16381/what-is-a-complete-list-of-the-usual-assumptions-for-linear-regression?noredirect=1=1.
 

Best regards,
John 

__
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] How to obtain a consistent estimator with a binary response model with endogenous explanatory variables?

2022-09-28 Thread Sun, John
Dear All,

I stumbled on a Wikipedia page describing the Two stage least-squares with a 
probit model with implementing a consistent estimator in binary variable 
regression.
How do I implement this method in R? It is related to instrumental variables 
estimator. I looked in ivreg and plm package and found nothing I think related. 
https://en.wikipedia.org/wiki/Binary_response_model_with_continuous_endogenous_explanatory_variables

Best regards,
John 

__
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] Why R >= 4.1 warns about installing Rtools on Windows?

2022-09-28 Thread Samuel Granjeaud

Hi,

Martin M. helped me focussing the context of my question.  The main 
result of my trials (various R4.x installations) after his mail is that 
the warning is issued when using *devtools* to install a package *from 
github*. When installing a package with install.packages(), no warning.


The warning looks like:

devtools::install_github("i-cyto/cytoBatchNorm")
WARNING: Rtools is required to build R packages, but no version of 
Rtools compatible with R 4.2.1 was found. (Only the following 
incompatible version(s) of Rtools were found: 4.0)
Please download and install Rtools 4.2 from 
https://cran.r-project.org/bin/windows/Rtools/ or 
https://www.r-project.org/nosvn/winutf8/ucrt3/.

Downloading GitHub repo i-cyto/cytoBatchNorm@HEAD
...

I don't think there is a need of Rtools. Let me know if you think there 
is a need of Rtools being installed prior to installing a pure R 
package. From your answers, I may contact the maintainer of devtools.


Thanks for reading.

Bonne journée,
Samuel

__
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] RES: How long does it take to learn the R programming language?

2022-09-28 Thread Gil Pena
If I could speak for myself, I first heard of R in 2018, when a Course on
biostatistics was offered to the Health Secretariat in my State (Minas
Gerais, Brazil). At that time, I found the software complex:

"... its use will require an understanding of its operation, which implies
knowing how it works with data and the proper nomenclature that it gives to
its objects and the proper syntax of its functions to perform analyzes on
its objects. It seemed like a lot of truck for our little sand, that is, it
would be like learning to drive a truck or pilot a ship, when, in our case,
a wheelbarrow or a Kombi does the job."

One year later, I revised my concepts:

" Now I know a little more about R. Although the initial interface seems
arid, with the > symbol waiting for us to type something, with a little
knowledge of how the program is organized, it is possible to obtain graphs
and maps, with much greater plasticity than achieved with TerraView, for
example. It is a powerful tool, with the availability of numerous packages,
which greatly expand the possibilities of analysis.
Furthermore, the software and packages are accessible, that is, they are not
paid, and there is a vast amount of content on the internet about how to
work with the tool.
So I review the perception I had a year ago, and I now understand that
mastering the tool is essential for us to manipulate data and carry out
analyzes within the secretariat."

Today I can handle some tasks within R, although I can say I have not
learned it yet. In the next IACR’s (International Association of Cancer
Registries) Scientific Conference, I will present an abstract concluding
that "Software R has proved to be a valuable tool for analyzing registry
data. It could easily handle mortality system databases, with almost 200
thousand lines, each year. The use of this software should be encouraged in
the registries, although at first it may seem difficult to use."

Gil Pena
Coordenador do Registro de Câncer de Base Populacional de Belo Horizonte
Coordenação de Vigilância do Câncer
Diretoria de Informações Epidemiológicas
Superintendência de Vigilância Epidemiológica
Subsecretaria de Vigilância em Saúde
Secretaria de Estado da Saúde - Governo de Minas Gerais

__
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 Line Ending Choice

2022-09-28 Thread Jorgen Harmse via R-help
eol seems to be the parameter to use, but the answers so far appear to assume 
that the file is created on a Mac. For example, I think that �\r\n� on Windows 
would produce CR CR LF. I don�t have both systems handy (so I can�t test), but 
I think you should use raw to specify the bytes you want.

# I think the following are independent of the OS on which you are writing the 
file.
CR <- rawToChar(as.raw(13))
LF <- rawToChar(as.raw(10))
if missing(target)
  # Hope that it matches the machine on which you are writing the file.
  eol <- �\n�
else if (target==�Windows�)
  eol <- c(CR,LF)
else if (target %in% c(�Unix�,�Mac�))
  eol <- LF
else if �.
else
  stop(�Unexpected target.�)

write.table(eol=eol, �.)

Regards,
Jorgen Harmse.



Message: 7
Date: Tue, 27 Sep 2022 11:35:54 -0400
From: "Stephen H. Dawson, DSL" 
To: Bert Gunter 
Cc: r-help 
Subject: Re: [R] Question about Line Ending Choice
Message-ID: <04e458aa-e5f5-c932-da3c-1aa35db7d...@shdawson.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hi Bert,


Thanks for the reply.

I did see the parameter, but was not sure if this is the correct
parameter to reference. I also see it in write.csv.

I take it you are saying the eol parameter is the best practice for
exporting from R using these functions. Am I correct or is there another
option other than write.csv and write.table I should be considering?


Thanks,
*Stephen Dawson, DSL*
/Executive Strategy Consultant/
Business & Technology
+1 (865) 804-3454
http://www.shdawson.com


On 9/27/22 11:29, Bert Gunter wrote:
> Did you not see the "eol" parameter in write.table ?
>
> Bert
>
> On Tue, Sep 27, 2022 at 8:23 AM Stephen H. Dawson, DSL via R-help
>  wrote:
>
> Hi All,
>
>
> I am writing with a question about choosing the line ending aspect
> of a
> file, please.
>
> I use write.csv and write.table to export work to CSV files and TXT
> files. I am planning now on how to share my work with the Windows
> crowd
> beyond only sharing with the Linux crowd. I use my text editor to
> flip
> the line ending option from Linux to Windows after exporting. This is
> inefficient for me to accomplish if I ramp up production as I expect
> will occur.
>
> Staying with the character encoding of UTF-8 seems fine for now from
> what I understand I need to deliver to my customers.
>
> What seems more efficient to me is to learn how to use R to define
> the
> line ending aspect of the exported file. I have not found if this
> is an
> option within R.
>
> QUESTION
> Is it possible within R to define the line ending aspect of file
> output?
>
>
> Kindest Regards,
> --
> *Stephen Dawson, DSL*
> /Executive Strategy Consultant/
> Business & Technology
> +1 (865) 804-3454
> http://www.shdawson.com
>
> __
> 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] How long does it take to learn the R programming language?

2022-09-28 Thread Thomas Subia via R-help
The length of time it takes to learn R is dependent on what you want to use R 
for.
Let's assume you want to use R to perform basic statistical analyses on your 
own.

IMHO, the best book for self-study for this is Andy Field's book, Discovering 
Statistics using R, It's the best book because it gives you all the necessary 
background for using basic statistical tests and the associated R scripts 
needed to perform them. 

You might also want to consider Winston Chang's The R  Graphics Cookbook, 
statistical analyses often need graphs to illustrate the data. This is the best 
book to teach you this because it gives you all the necessary R scripts to 
achieve this. 

The learning curve for learning basic statistical analyses using R is steep 
relative to SPSS and Minitab. SPSS and Minitab use GUIs to easily guide the 
user to the desired statistical analysis. Typically the user does not have to 
write commands to do this. R does offer R Commander which has a GUI to guide 
the user to data input, graphing and statistical analyses. You may find this 
useful. I suspect that as you become more comfortable using R, you will become 
less dependent on R Commander for your analyses. 

Hope this helps!

Thomas Subia


 

__
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: [ESS] Debian installation bug report with current package and Emacs 28.1

2022-09-28 Thread Dirk Eddelbuettel via ESS-help


Per the email I had referenced earlier and its schedule, ESS has now been
removed from Debian 'unstable' ie the rolling top of the distribution.  While
the existing package in the stable release (as well as previous ones) is
still there for manual installation, future releases will not contain ESS.

Dirk

-- 
dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [R] Why R >= 4.1 warns about installing Rtools on Windows?

2022-09-28 Thread Robert Baer
I don't know for sure, but I imagine this warning is for"old users" that 
have been using RTools for some of their packages and need to know that 
the old RTools no longer works with the latest builds.  It certainly was 
helpful to me.  I understand how frightening it could be to new users, 
but everyone should benefit from learning the difference between a 
warning and an error at some time.


On 9/27/2022 3:51 AM, Samuel Granjeaud wrote:


Hi,

I don't understand why Rtoosl seems to be required even if a package 
is pure R. For sure, this is just a warning, but it frightens new 
comers. So, why encouraging people add stuff that will be probably 
unneeded?


Have a nice,
Samuel

__
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.


--
__
Robert W. Baer, Ph.D.
Professor of Physiolgy
Kirksville College of Osteopathic Medicine
A.T. Still University of Heallth Sciences
800 W. Jefferson St.
Kirksville, MO 63501
P: 660-626-2322


 

 


The ATSU Mission
A.T. Still University of Health Sciences serves as a learning-centered 
university dedicated to preparing highly competent professionals through 
innovative academic programs with a commitment to continue its osteopathic 
heritage and focus on whole person healthcare, scholarship, community health, 
interprofessional education, diversity, and underserved populations.

Proud recipient of INSIGHT Into Diversity’s 2017-19 Higher Education Excellence 
in Diversity Awards.

__
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] How long does it take to learn the R programming language?

2022-09-28 Thread Richard O'Keefe
How long does it take to learn R?
Meaningless question.
Who is learning?
Are they new to programming?
What other programming languages do they know?
Are they new to statistics?
What other statistics environments do they know?
Are they learning by themselves?
Do they have a mentor?
Fellow students?
Which textbooks are they using?

I found R very easy to learn, but I was
already familiar with dozens of programming
languages and the SPSS, GLIM, and Genstat
statistics environments, so my experience
will probably mean nothing for you.

The R *language* can be thought of as
covering several different things:
(1) Basic R *DATA STRUCTURES*.
By this I mean logical, integer, real,
complex and character vectors and arrays
(R doesn't actually have scalars) and lists.
This is where R differs most from most
other programming languages except (S of
course and) APL and perhaps Matlab.
(2) R *CONTROL STRUCTURES*.  The syntax
of R and how you write functions in R.
R looks a lot like C/Java/Perl except
where it doesn't, and the most different
aspect of R here is function parameters
(which resemble Lisp) and the way parameters
are passed.
(3) How R data structures are EXTENDED.
The S3 and S4 "object" systems.  Some of
the things like data frames, dates and times,
time series, models, and so on built on these.
(4) Reflection and namespaces.
At this point, you could be said to have mastered
the R *language*.  It is not a big or complex
language.  It's much simpler than C++ or C#.
However, R comes with a range of testing and
documentation tools.  And there is a DAUNTING
range of packages for an astounding range of
statistical and graphical applications.


This is actually my plan for learning any
programming language:
- basic data structures
- basic control structures
- basic debugging techniques
- data structure extension methods
- control structure extension methods
- testing and documentation tools

A word about existing code bases.
R code tends to be written by people with
a great deal of knowledge and insight about
the algorithms they are coding and the
applications they are coding for.
R encourages the development of good
documentation for people who are USING the
code, with examples and vignettes and all that.
However, most of the people are NOT software
engineers and are not writing code with the
dominant idea that someone else will have to
come to understand the inner workings of the
code well enough to maintain it without them.
(This is also true of pretty much all the
Java and C# code I've ever seen, which is too
much of it.)  If you look at an existing
package and find it hard to understand, that
doesn't necessarily mean you haven't learned
enough yet.  Maybe it just *is* hard to
understand because it was written to be useful,
not to be educational.

On Wed, 28 Sept 2022 at 04:13, Turritopsis Dohrnii Teo En Ming <
c...@teo-en-ming-corp.com> wrote:

> Subject: How long does it take to learn the R programming language?
>
> Good day from Singapore,
>
> How long does it take to learn the R programming language?
>
> Is it easy? Is there a steep learning curve?
>
> Thank you.
>
> Regards,
>
> Mr. Turritopsis Dohrnii Teo En Ming
> Targeted Individual in Singapore
> Blogs:
> https://tdtemcerts.blogspot.com
> https://tdtemcerts.wordpress.com
>
> __
> 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-es] Una pequeña inquietud

2022-09-28 Thread Juan Abasolo
Hola, Heber & co.
Yo del tema no sé, pero sí sé que hace poquito leí un twit sobre que 
existe algo para R para bajar datos de algo que se llama YahooFinances 
(así de poco sé del tema).
Haciendo una búsqueda rápida en DuckDuckGo me encontré con esto:
https://search.r-project.org/CRAN/refmans/FinAna/html/get.price.yahoo.html
y esto
https://www.nbshare.io/notebook/233979015/How-To-Analyze-Yahoo-Finance-Data-With-R/
 
(acá te mencionan quantmod)

Me parece que por ahí tendrías que empezar a mirar; herramientas 
específicas.
rvest es buenísimo, pero te lo tendrías que terminar vos mismo. Y, 
además, no es amigo de java, como ya te comentaron.

Suerte

Juan

22/9/27 14:52(e)an, heber sarmiento via R-help-es igorleak idatzi zuen:
> Buenos días a todos,
> Inicialmente agradecer cualquier colaboración que a bien me puedan hacer; en 
> la actualidad me encuentro trabajando con Yahoo Finance y google Finances, el 
> asunto es que requiero descargar datos de estas paginas y he tenido que 
> hacerlo inicialmente con Excel y guardar como csv, sin embargo me preguntaba 
> si existe en R algun paquete que haga esto directamente en R. De antemano 
> agradezco cualquier colaboración al respecto.
> Heber
>   [[alternative HTML version deleted]]
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es

-- 
Juan Abasolo, PhD

Hizkuntzaren eta Literaturaren Didaktika Saila | EUDIA ikerketa taldea
Bilboko Hezkuntza Fakultatea
Euskal Herriko Unibertsitatea UPV/EHU

Sarriena auzoa z/g 48940 - Leioa (Bizkaia)

T   : (+34) 94 601 7567
Telegram: @JuanAbasolo
Skype   : abasolo72
Bloga   : juanabasolo.netlify.com

[[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] Fatal Error: Contains Space

2022-09-28 Thread Eric Berger
In the link I sent there is a solution suggested by Venk Murthy.

On Wed, Sep 28, 2022 at 5:14 AM Kaitlyn Light  wrote:
>
> Hello!
>
> That perfectly describes the problem I am facing but I did not see any 
> solutions suggested in the link. Do you happen to know of any? Thank you so 
> much for the help!!
>
> Best,
> Kaitlyn Light
>
> On Thu, Sep 22, 2022 at 3:42 AM Eric Berger  wrote:
>>
>> Does this help?
>> https://stackoverflow.com/questions/72138987/r-studio-fatal-error-r-tempdircontains-space
>>
>> On Thu, Sep 22, 2022 at 10:37 AM Kaitlyn Light  wrote:
>>>
>>> Hello!
>>> I recently downloaded R and RStudio to my windows laptop. I downloaded the
>>> correct version and made sure it was for windows and not mac. However, when
>>> I tried to open RStudio, a message saying " R_tempdir Fatal Error:
>>> Contains Space" would pop-up. The program would open as a blank screen and
>>> usually make the rest of my laptop stall until it was shut off. I tried
>>> uninstalling and reinstalling the programs, however, the issue did not
>>> change. I checked my Microsoft username to make sure it did not "contain
>>> space" (as in spacebars) but it did not. I was hoping I would be able to
>>> get some help moving forward on how to get this fixed. Thank you for your
>>> help!
>>>
>>> Best,
>>> Kaitlyn Light
>>>
>>> [[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.

__
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.