R (linguaxe de programación): Diferenzas entre revisións

Contido eliminado Contido engadido
Sen resumo de edición
Sen resumo de edición
Liña 18:
}}
'''R''' é unha linguaxe de programación, coa súa contorna, para a estatística computacional e a produción de gráficos<ref name="faq_whatsr"></ref>. O seu desenvolvemento está apoiado e é xestionado pola ''Fundación para a Estatística Computacional R''<ref name="faq_whatsr">
{{Cita web |url=https://cran.r-project.org/doc/FAQ/R-FAQ.html#What-is-R_003f |título=R FAQ - What is R? |data=3 de outubro de 2016 |nome=Kurt |apelido=Hornik |páxina-web=The Comprehensive R Archive Network |dataacceso=3 de outubro de 2016}}</ref><ref name="r_core_cita">R Core Team (2016). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL http://www.R-project.org/.</ref>. O seu desenvolvemento comezarono [[Ross Ihaka]] e [[Robert Gentleman]] en 1995 como unha implementación da linguaxe de programación [[S (Linguaxe de programación)|S]]<ref>[http://www.kdnuggets.com/2015/05/r-vs-python-data-science.html R vs Python for Data Science: The Winner is …] Martijn Theuwissen, DataCamp. Xuño de 2005. Consultado o 3 de outubro de 2016.</ref>. R é [[List of GNU packages(sistema operativo)|un proxecto de GNU]] <ref>{{cite web | url=http://directory.fsf.org/project/gnur/ | publisher=Free Software Foundation (FSF) Free Software Directory|title=GNU R |date=19 July 2010|accessdate=3 de outubro de 2016}}</ref><ref>{{cite web | author=R Project|date=n.d.|url=https://www.r-project.org/about.html | title=What is R? | accessdate=3 de outubro de 2016}}</ref> O código fonte de R está escrito en [[C (programación)|C]], [[Fortran]] e R <ref>{{cite web | author="Wrathematics"|url=http://librestats.com/2011/08/27/how-much-of-r-is-written-in-r/ | title=How Much of R Is Written in R | date=27 August 2011|accessdate=3 de outubro de 2016|publisher=librestats}}</ref>.
<ref>{{cite web | author=R Project|date=n.d.|url=https://www.r-project.org/about.html | title=What is R? | accessdate=3 de outubro de 2016}}</ref> O código fonte de R está escrito en [[C (programación)|C]], [[Fortran]] e R <ref>{{cite web | author="Wrathematics"|url=http://librestats.com/2011/08/27/how-much-of-r-is-written-in-r/ | title=How Much of R Is Written in R | date=27 August 2011|accessdate=3 de outubro de 2016|publisher=librestats}}</ref>.
R distribúese baixo a licenza GNU [[GPL]], co cal é de código aberto e libre, e está dispoñible para os [[sistema operativo|sistemas operativos]] [[Unix]] e [[GNU/Linux]], [[OS X|Mac OS X]] e [[Microsoft Windows|Windows]]. Algunhas das características máis relevantes é que se trata dunha [[linguaxe interpretada]] e que está [[Programación orientada a obxectos|orientada a obxectos]].
 
A linguaxe R empregase amplamente na [[estatística]], na análise e minado de datos e para o desenvolvemento de software estatístico <ref name="fox2005">{{cite journal |author1=Fox, John |author2=Andersen, Robert |lastauthoramp=yes | title = Using the R Statistical Computing Environment to Teach Social Statistics Courses | publisher = Department of Sociology, McMaster University | date = January 2005 | url = http://www.unt.edu/rss/Teaching-with-R.pdf | format = PDF | accessdate = 3 de outubro de 2016 }}</ref><ref name="nytimes2009">{{cite news | url=http://www.nytimes.com/2009/01/07/technology/business-computing/07program.html |title=Data Analysts Captivated by R's Power | date=1 de xaneiro de 2006 | accessdate=3 de outubro de 2016|last=Vance| first=Ashlee |work=[[New York Times]]| quote=R tamén é o nome da popular linguaxe que están a empregar un número crecente de analistas de datos de institucións e empresas. Estase a converter na súa lingua franca...}}</ref>. Recentes estudos e enquisas mostraron que a popularidade de R estivo a aumentar nos últimos anos<ref>David Smith (2012); [http://java.sys-con.com/node/2288420 ''R Tops Data Mining Software Poll''], Java Developers Journal, May 31, 2012</ref><ref>Karl Rexer, Heather Allen, e Paul Gearan (2011) http://www.rexeranalytics.com/Data-Miner-Survey-Results-2011.html ''2011 Data Miner Survey Summary''], presentado en Predictive Analytics World, outubro de 2011.</ref><ref>{{cite web|author=Robert A. Muenchen|year=2012|url= http://r4stats.com/articles/popularity/|title=The Popularity of Data Analysis Software}}</ref><ref name="nature2014">{{cite journal|url=http://www.nature.com/news/programming-tools-adventures-with-r-1.16609|title=Programming tools: Adventures with R|first1=Sylvia|last1=Tippmann|journal=[[Nature (journal)|Nature]]|issue = 517| doi = 10.1038/517109a | pages = 109–110 | date = 29 December 2014}}
}}</ref> e que se coloca xa como a quinta linguaxe máis popular entre os desenvolvedores<ref name="ieee_spectrum2016">{{Cite web| last = Cass| first = Stephen| title = The 2016 Top Programming Languages| work = IEEE Spectrum: Technology, Engineering, and Science News| accessdate = 2016-10-03| date = 2016-07-26| url = http://spectrum.ieee.org/computing/software/the-2016-top-programming-languages}}</ref>. A [[bioinformática]], a investigación [[Biomédicina|biomédica]], [[ecoloxía]] e as [[matemáticas financeiras]], entre outros campos de ''big data'', é onde se está a empregar máis. R cítase de xeito común como a ''lingua franca'' da ciencia <ref>{{Cite web| title = The rise of R as the language of analytics| work = Revolutions| accessdate = 2016-10-03| url = http://blog.revolutionanalytics.com/2013/11/the-rise-of-r-as-the-language-of-analytics.html}}</ref>.
 
Ademais de liña de comandos, R pódese empregar en varias intefácesinterfaces gráficas<ref name="R_gui">{{cite web|title=7 of the Best Free Graphical User Interfaces for R|url=http://www.linuxlinks.com/article/20110306113701179/GUIsforR.html|website=linuxlinks.com|accessdate=9 February 2016}}</ref>.
 
No repositorio [[CRAN]] atópanse máis de 6 mil libreríaslibrarías, ou paquetes de funcións, que amplían a capacidade funcional da base de R<ref name="revol_numpack">{{Cite web| title = How many packages are there really on CRAN?| work = Revolutions| accessdate = 3 de outubro de 2016| url = http://blog.revolutionanalytics.com/2015/06/how-many-packages-are-there-really-on-cran.html}}</ref><ref>{{Cite web| title = On the growth of CRAN packages| work = R-bloggers| accessdate = 3 de outubro de 2016| date = 2016-04-15| url = http://www.r-bloggers.com/on-the-growth-of-cran-packages/}}</ref>. R pode integrarse con distintas [[base de datos|bases de datos]], como [[MySQL]], [[MariaDB]], [[SQLite]], [[PostgreSQL]] ou [[MongoDB]]. Existen libreríaslibrarías que facilitan a súa utilización desde linguaxes de programación interpretados como [[Perl]] e [[Python]] ou en linguaxes de código compilado, por exemplo, [[Linguaxe de programación C|C]] ou [[Fortran]]. O proxecto máis coñecido desenvolvido sobre R é [[Bioconductor]], que conta con máis de 1200 paqueteslibrarías de R e que permite o tratamento de datos de [[Secuenciación do ADN|sequenciación]] [[Xenoma|xenómica]] masiva<ref>[https://www.bioconductor.org/ Bioconductor - Open Source Software for Bioinformatics]</ref><ref name="bioconductor_pkgs">{{Cite web| title = Bioconductor - BiocViews| accessdate = 3 de novembro de 2016| url = https://www.bioconductor.org/packages/release/BiocViews.html#___Software}}</ref>.
 
== Interfaces ==
=== Interfaces gráficas ===
Algunhas interfaces de traballo para R son <ref>Unha edición especial de ''[[Journal of Statistical Software]]'' describe as diferentes interfaces dispoñibles para R: ""{{cite web | url=http://www.jstatsoft.org/v49 | first=Pedro|last=Valero-Mora|publisher=Journal of Statistical Software (by Pedro M. Valero-Mora, and Ruben Ledesma)| title=Graphical User Interfaces for R | accessdate=2014}}"</ref>:
* [[Architect (software)|Architect]] – inteface de desenvolvemento multiplataforma para analise de datos científicos en [[Eclipse (software)|Eclipse]] e StatET.
* Deducer<ref name=DeducerOrg>{{cite web|title=Deducer Manual|url=http://www.deducer.org/pmwiki/pmwiki.php?n=Main.DeducerManual|website=www.deducer.org|accessdate=2014-07-03}}</ref> – GUI para análise de datos guiado por meúsmenús.
* [[Java GUI for R]] (JGR) – editor e terminal de R multiplataforma baseado en [[Java]].
* [[Rattle GUI]] – GUI multiplataforma baseada RGtk2 e deseñada para a minaría de datos.
* [[R Commander]] – editor e terminal de R multiplataforma baseado [[tcl]]tk, con engadidos para Rcmdr.
* Revolution R Productivity Environment (RPE) – IDE privativa desenvolta sobre Visual Studio-based IDE.
* RGUI.
* [[RKWard]] – GUI e IDE para R.
* [[RStudio]] – editor e terminal de R multiplataforma de código libre, permite a execiónexecución en servidores Linux remotos.
 
=== Editores e IDEs ===
Liña 48 ⟶ 47:
| author=Stephan Wahlbrink
| accessdate=3 de outubro de 2016
}}</ref> [[Emacs]] ([[Emacs Speaks Statistics]]), [[LyX]] (con módulos para [[knitr]] e [[Sweave]]), [[Vim (editor de texto)|Vim]], [[jEdit]],<ref>{{cite web
}}</ref>
[[Emacs]] ([[Emacs Speaks Statistics]]),
[[LyX]] (con módulos para [[knitr]] e [[Sweave]]),
[[Vim (editor de texto)|Vim]],
[[jEdit]],<ref>{{cite web
| url=http://community.jedit.org/?q=node/view/2339
| title=R syntax
| author=Jose Claudio Faria
| accessdate=3 de outubro de 2016
}}</ref> [[VimKate (editor de texto)|VimKate]],<ref>{{cite web
}}</ref>
[[Kate (editor de texto)|Kate]],<ref>{{cite web
| url=http://kate-editor.org/downloads/syntax_highlighting
| title=Syntax Highlighting
| publisher=Kate Development Team
| accessdate=3 de outubro de 2016
| archiveurl = http://web.archive.org/web/20080707062903/http://www.kate-editor.org/downloads/syntax_highlighting <!-- Bot retrieved archive --> |archivedate = 2008-07-07}}</ref> Revolution R Enterprise DevelopR (parte de ''Revolution R Enterprise''),<ref>{{cite web|url=http://www.revolutionanalytics.com/revolution-r-enterprise-developr |title=R PEnterprise DevelopR |publisher=Revolution Analytics |accessdate=3 de outubro de 2016 |deadurl=yes |archiveurl=https://web.archive.org/web/20140418234047/http://www.revolutionanalytics.com/revolution-r-enterprise-developr |archivedate=18 de abril de 2014 }}
Revolution R Enterprise DevelopR (parte de ''Revolution R Enterprise''),<ref>{{cite web|url=http://www.revolutionanalytics.com/revolution-r-enterprise-developr |title=R PEnterprise DevelopR |publisher=Revolution Analytics |accessdate=3 de outubro de 2016 |deadurl=yes |archiveurl=https://web.archive.org/web/20140418234047/http://www.revolutionanalytics.com/revolution-r-enterprise-developr |archivedate=18 de abril de 2014 }}
</ref>
[[RStudio]],<ref>{{cite web
Liña 74 ⟶ 67:
[[Sublime Text]],
[[TextMate]],
[[Atom (text editor)|Atom]], [[WinEdt]] (libraría R RWinEdt),[http://nbcgib.uesc.br/lec/software/editores/tinn-r/en Tinn-R],[[Notepad++]],<ref>{{cite web |url=http://sourceforge.net/projects/npptor/ |title=NppToR: R in Notepad++ |publisher=sourceforge.net |accessdate=3 de outubro de 2016|date=8 May 2013 }}</ref> [[Microsoft Visual Studio|Visual Studio]]<ref>{{Cite web|url=https://www.visualstudio.com/en-us/features/rtvs-vs.aspx|title=R Tools for Visual Studio|website=www.visualstudio.com|access-date=2016-07-18}}</ref> ande [[Architect (software)|Architect]].<ref>{{cite web
[[Atom (text editor)|Atom]],
[[WinEdt]] (R Package RWinEdt),
[http://nbcgib.uesc.br/lec/software/editores/tinn-r/en Tinn-R],
[[Notepad++]],<ref>{{cite web |url=http://sourceforge.net/projects/npptor/ |title=NppToR: R in Notepad++ |publisher=sourceforge.net |accessdate=3 de outubro de 2016|date=8 May 2013 }}</ref> [[Microsoft Visual Studio|Visual Studio]]<ref>{{Cite web|url=https://www.visualstudio.com/en-us/features/rtvs-vs.aspx|title=R Tools for Visual Studio|website=www.visualstudio.com|access-date=2016-07-18}}</ref> and
[[Architect (software)|Architect]].<ref>{{cite web
| url=http://www.openanalytics.eu/architect
| title=Architect: integrated development environment for data science
Liña 86 ⟶ 75:
 
=== Scripting ===
RAs functionalityfuncionalidades hasde been madeR accessibleestán fromdispoñibles severalnoutras scriptinglinguaxes languagesde suchprogramación ascomo [[Python]], <ref>{{cite web|url=http://rpy.sourceforge.net|title=A simple and efficient access to R from Python|accessdate=18 September 2013|date=21 October 2012|first=Laurent|last=Gautier }}</ref> [[Perl]],<ref>{{cite web|url=https://metacpan.org/module/Statistics::R|title=Statistics::R - Perl interface with the R statistical program - metacpan.org|author=Florent Angly|publisher=}}</ref> [[Ruby]],<ref>{{cite web|url=https://github.com/alexgutteridge/rsruby|title=GitHub - alexgutteridge/rsruby: Ruby - R bridge.|author=alexgutteridge|work=GitHub}}</ref> [[F Sharp|F#]]<ref>{{cite web|url=http://bluemountaincapital.github.io/FSharpRProvider/|title=F# R Type Provider|author=BlueMountain Capital|publisher=}}</ref> e [[Julia (linguaxe de programación)|Julia]].{{refn | Julia
As funcionalidades de R están dispoñibles noutras linguaxes de programación como [[Python]],
R functionality has been made accessible from several scripting languages such as [[Python]], <ref>{{cite web|url=http://rpy.sourceforge.net|title=A simple and efficient access to R from Python|accessdate=18 September 2013|date=21 October 2012|first=Laurent|last=Gautier }}</ref> [[Perl]],<ref>{{cite web|url=https://metacpan.org/module/Statistics::R|title=Statistics::R - Perl interface with the R statistical program - metacpan.org|author=Florent Angly|publisher=}}</ref> [[Ruby]],<ref>{{cite web|url=https://github.com/alexgutteridge/rsruby|title=GitHub - alexgutteridge/rsruby: Ruby - R bridge.|author=alexgutteridge|work=GitHub}}</ref> [[F Sharp|F#]]<ref>{{cite web|url=http://bluemountaincapital.github.io/FSharpRProvider/|title=F# R Type Provider|author=BlueMountain Capital|publisher=}}</ref> e [[Julia (linguaxe de programación)|Julia]].{{refn | Julia
* https://github.com/lgautier/Rif.jl
* https://github.com/randy3k/RCall.jl