Documentatie

    Table of Content
    • 3D-bestandsindelingen
      • 3D-bestandsindelingen
      • 3D2
      • 3DM
      • 3DS
      • 3MF
      • AMF
      • ASE
      • B3D
      • DAE
      • DBM
      • DRC
      • E57
      • FBX
      • GLB
      • GLTF
      • IPT
      • JT
      • MA
      • MB
      • MP
      • OBJ
      • PLY
      • PRC
      • RVM
      • STEP
      • STP
      • U3D
      • USD
      • USDZ
      • VRML
      • X
      • X3D
    • Audiobestandsindelingen
      • Audiobestandsindelingen
      • 8SVX
      • AA
      • AAC
      • AAX
      • AC3
      • ACT
      • AIFF
      • ALAC
      • AMR
      • APE
      • CDA
      • DSS
      • FLAC
      • GSM
      • M3U
      • M3U8
      • M4A
      • M4B
      • M4P
      • MID
      • MKA
      • MMF
      • MOD
      • MP2
      • MP3
      • MPC
      • MXL
      • NSA
      • OGG
      • OPUS
      • RA
      • RF64
      • SDT
      • STAP
      • VOC
      • VOX
      • VQF
      • WAV
      • WEBA
      • WFP
      • WMA
      • WPL
      • WV
    • CAD-bestandsindelingen
      • CAD-bestandsindelingen
      • ART
      • ASC
      • ASM
      • CATPART
      • CF2
      • DC3
      • DGN
      • DST
      • DWF
      • DWFX
      • DWG
      • DWT
      • DXF
      • FZP
      • HPGL
      • IFC
      • IGES
      • IGS
      • JVSG
      • NC
      • NWC
      • NWD
      • NWF
      • PAT
      • PHJ
      • PLT
      • PSM
      • PSS
      • RFA
      • RFT
      • RML
      • RVT
      • SLDPRT
      • STL
    • Compressiebestandsindelingen
      • Compressiebestandsindelingen
      • 7Z
      • ACE
      • ALZ
      • APK
      • ARC
      • ARJ
      • B1
      • B6Z
      • BKF
      • BNDL
      • BZ2
      • DAA
      • DAR
      • DEB
      • DMG
      • DZ
      • ECS
      • FZPZ
      • GZ
      • GZIP
      • ICE
      • ISO
      • KGB
      • LBR
      • LQR
      • LZ
      • LZ4
      • LZH
      • LZMA
      • LZO
      • LZX
      • MBW
      • MINT
      • MPKG
      • MPQ
      • NPK
      • OAR
      • PAGES
      • PEA
      • PET
      • PF
      • PKG
      • PTK
      • PUP
      • RAR
      • RPM
      • RTE
      • S00
      • SIFZ
      • SIT
      • SITX
      • SY_
      • TAR
      • TBZ
      • TGS
      • TGZ
      • TPSR
      • TZ
      • VPK
      • WHL
      • WUX
      • XAPK
      • XAR
      • XPI
      • XZ
      • Z
      • ZIM
      • ZIP
      • ZIPX
      • ZL
    • Database
      • Databasebestandsindelingen
      • 4DB
      • 4DD
      • ACCDB
      • ACCDC
      • ACCDE
      • ACCDR
      • ACCDT
      • ACCDW
      • ACCFT
      • ADB
      • ADE
      • ADF
      • ADN
      • ADP
      • ALF
      • ANB
      • AQ
      • ASK
      • BAK
      • BCP
      • BTR
      • CDB
      • DACPAC
      • DAT
      • DB
      • DB3
      • DBC
      • DBF
      • DDL
      • DTSX
      • FMP12
      • FMPSL
      • FP5
      • FP7
      • GDB
      • ITW
      • LDF
      • LOG
      • MDB
      • MDF
      • MYI
      • NDF
      • NSF
      • SAV
      • SDF
      • SQL
      • SQLITE
      • TE
      • TRC
      • TRM
      • UDL
      • WDB
    • Schijf en media
      • Schijf- en mediabestandsindelingen
      • BIN
      • CCD
      • CSO
      • CUE
      • GADGET
      • IMG
      • NKIT
      • NRG
      • OVA
      • OVF
      • ROM
      • SDI
      • Toast
      • UDF
      • VCD
      • VDI
      • VHD
      • VHDX
      • WBFS
      • WIM
      • WUD
    • EBook-bestandsindelingen
      • EBook-bestandsindelingen
      • ACSM
      • AEP
      • APNX
      • AVA
      • AZW
      • AZW1
      • AZW3
      • AZW4
      • BKK
      • BPNUEB
      • CBC
      • CBR
      • CBZ
      • CEB
      • CEBX
      • DNL
      • EA
      • EAL
      • EBK
      • EDN
      • EPUB
      • ETD
      • FB2
      • FKB
      • HAN
      • HTML0
      • HTMLZ
      • HTXT
      • HTZ4
      • HTZ5
      • IBOOKS
      • KFX
      • KOOB
      • LIT
      • LRF
      • LRS
      • LRX
      • MART
      • MBP
      • MOBI
      • NCX
      • NVA
      • OEB
      • OEBZIP
      • OPF
      • ORB
      • PHL
      • PML
      • PMLZ
      • POBI
      • QMK
      • RB
      • RZB
      • RZS
      • SNB
      • TCR
      • TK3
      • TPZ
      • TR
      • TR3
      • VBK
      • WEBZ
      • YBK
    • E-mailbestandsindelingen
      • E-mailbestandsindelingen
      • EDB
      • EML
      • EMLX
      • ICS
      • MBOX
      • MSG
      • OFT
      • OLM
      • OST
      • P7S
      • PST
      • RPMSG
      • TNEF
      • VCF
    • Uitvoerbaar
      • Uitvoerbare bestandsindelingen
      • AHK
      • BAT
      • BTAPP
      • CGI
      • CMD
      • COM
      • EXE
      • IPA
      • MSI
      • MST
      • PIF
      • PYC
      • REG
      • WSF
      • WSH
      • XBE
      • XEX
    • Financiën
      • Financiële bestandsindelingen
      • ABA
      • IXBRL
      • XBRL
    • Lettertype
      • Lettertypebestandsindelingen
      • BDF
      • CFF
      • CFF2
      • EOT
      • FNT
      • FON
      • JFPROJ
      • MFX
      • OTF
      • PFA
      • PFB
      • PFM
      • SFD
      • TTC
      • TTF
      • Type1
      • WOFF
    • Spelbestandsindelingen
      • Spelbestandsindelingen
      • BMZ
      • BNS
      • CLIP
      • CON
      • CSD
      • CT
      • DEK
      • FOMOD
      • GAM
      • KODU
      • MCWORLD
      • MGX
      • PAK
      • PCC
      • PSS
      • PUP
      • PWF
      • REL
      • REP
      • RPX
      • SAV
      • SFAR
      • SID
      • U8
      • UMX
      • W3N
    • GIS-bestandsindelingen
      • GIS-bestandsindelingen
      • 000
      • 3D
      • 3DD
      • ADF
      • APL
      • APR
      • ATX
      • AUX
      • DEM
      • DIV
      • DLG
      • E00
      • ETA
      • FIT
      • GeoJSON
      • GLB
      • GMAP
      • GML
      • GPKG
      • GPX
      • IMG
      • KML
      • KMZ
      • LOC
      • MPS
      • NM2
      • NTF
      • OSM
      • QGD
      • QGS
      • QGZ
      • QLR
      • QML
      • SBN
      • SHP
      • SHX
      • SP3
      • SSF
      • TCX
    • Afbeeldingsbestandsindelingen
      • Afbeeldingsbestandsindelingen
      • AI
      • APNG
      • ART
      • AVIF
      • BMP
      • BPG
      • CDR
      • CLIP
      • CMX
      • CPC
      • CR2
      • CR3
      • CSL
      • CT
      • CUR
      • DCM
      • DCR
      • DCX
      • DDS
      • DIB
      • DICOM
      • DJVU
      • DNG
      • ECW
      • EMF
      • EMZ
      • EXIF
      • FLIF
      • FODG
      • GBR
      • GIF
      • HDR
      • HEIC
      • HEIF
      • ICNS
      • ICO
      • J2C
      • J2K
      • JFIF
      • JP2
      • JPC
      • JPEG
      • JPF
      • JPM
      • JPX
      • JXR
      • MNG
      • MP
      • MPO
      • NEF
      • ODG
      • OTG
      • PCT
      • PCX
      • PICT
      • PNG
      • PPP
      • PSB
      • PSD
      • PSP
      • PSPIMAGE
      • SKP
      • SVGZ
      • TGA
      • THM
      • TIFF
      • WEBP
      • WMF
      • WMZ
      • XPM
      • XPR
    • Diverse bestandsindelingen
      • Diverse bestandsindelingen
      • AML
      • ART
      • BUP
      • CMS
      • CTG
      • DAP
      • ENL
      • ERR
      • GPG
      • H4
      • H5
      • ICA
      • KLQ
      • LOCK
      • LRC
      • MD5
      • MSO
      • OBB
      • ODF
      • OGG
      • PES
      • RIS
      • RML
      • SSP
      • THM
      • TORRENT
      • VIM
      • VIMRC
      • XMP
      • XSMX
    • Opmerking Bestandsindelingen maken
      • Opmerking Bestandsindelingen maken
      • ONE
      • ONETOC2
    • Paginabeschrijving Taal
      • Paginabeschrijving Taal
      • AVERY
      • CGM
      • EPS
      • INDD
      • INDT
      • OXPS
      • PCL
      • PS
      • SVG
      • SWF
      • TEX
      • XPS
      • XSLFO
    • PDF
      • PDF
      • FDF
      • PDF/A
      • PDF/E
      • PDF/UA
      • PDF/VT
      • PDF/X
      • XFDF
    • Presentatiebestandsindelingen
      • Presentatiebestandsindelingen
      • KEY
      • ODP
      • OTP
      • POT
      • POTM
      • POTX
      • PPS
      • PPSM
      • PPSX
      • PPT
      • PPTM
      • PPTX
    • Programmeren
      • Programmeren
      • ABC
      • ACD
      • ADDIN
      • ADS
      • AGI
      • AIA
      • AIDL
      • ALB
      • AML
      • ANE
      • APA
      • APKS
      • APPX
      • APPXBUNDLE
      • APPXUPLOAD
      • APS
      • ARSC
      • AS
      • ASM
      • AWK
      • C
      • CD
      • Class
      • CMAKE
      • CONFIG
      • CPP
      • CS
      • CSPROJ
      • CXX
      • Dart
      • DIFF
      • EGG
      • ERB
      • EX
      • G4
      • GO
      • GROOVY
      • H
      • HAML
      • HH
      • HS
      • HTA
      • ICI
      • IN
      • INC
      • IPR
      • JAR
      • Java
      • JRXML
      • JSP
      • JSPF
      • KT
      • LGO
      • LUA
      • M
      • MAKE
      • MEL
      • MF
      • ML
      • MM
      • MRC
      • MSIX
      • NUPKG
      • NUT
      • PAS
      • PDB
      • PDE
      • PHP
      • PL
      • PY
      • PYD
      • PYI
      • PYM
      • PYW
      • PYX
      • R
      • RBXL
      • RBXM
      • RES
      • RS
      • RST
      • SCALA
      • SCM
      • SCRIPT
      • SH
      • SLN
      • SWIFT
      • TCL
      • TOML
      • TS
      • UNITY
      • VB
      • VBPROJ
      • VBS
      • VCXPROJ
      • XSD
      • YAML
      • YML
      • YPR
    • Bestandsindelingen voor projectbeheer
      • Bestandsindelingen voor projectbeheer
      • MPP
      • MPT
      • MPX
      • P6XML
      • XER
    • Uitgever bestandsindelingen
      • Uitgever bestandsindelingen
      • PUB
      • PUZ
    • Rapportage
      • Rapportagebestandsindelingen
      • MAR
      • RDL
      • RDLC
      • RPL
      • RPT
    • Spreadsheetbestandsindelingen
      • Spreadsheetbestandsindelingen
      • 123
      • 12M
      • _XLS
      • _XLSX
      • AST
      • AWS
      • BKS
      • CELL
      • CSV
      • CTS
      • DEF
      • DEX
      • DFG
      • DIF
      • DIS
      • EFU
      • ESS
      • FCS
      • FM
      • FODS
      • FP
      • GNM
      • GNUMERIC
      • IMP
      • MAR
      • NB
      • NUMBERS
      • NUMBERS-TEF
      • ODS
      • OTS
      • PMD
      • PMDX
      • PMVX
      • SDC
      • STC
      • SXC
      • TMV
      • TMVT
      • TSV
      • XAR
      • XL
      • XLA
      • XLAM
      • XLM
      • XLR
      • XLS
      • XLSB
      • XLSM
      • XLSMHTML
      • XLSX
      • XLT
      • XLTHTML
      • XLTM
      • XLTX
    • Systeembestandsindelingen
      • Systeembestandsindelingen
      • AML
      • ASV
      • CAB
      • CFG
      • CPG
      • CPL
      • DLL
      • DMP
      • DRV
      • ETL
      • HDMP
      • INI
      • INS
      • LNK
      • MDMP
      • SCR
      • SYS
      • TMP
    • Videobestandsindelingen
      • Videobestandsindelingen
      • 3G2
      • 3GP
      • AMV
      • ARF
      • ASF
      • AVCHD
      • AVI
      • BIK
      • DAV
      • EXO
      • F4V
      • FLV
      • H264
      • H265
      • IDX
      • IFO
      • M2TS
      • M4S
      • M4V
      • MJPEG
      • MK3D
      • MKS
      • MKV
      • MOV
      • MP4
      • MPE
      • MPG
      • MPV
      • MTS
      • MXF
      • NSV
      • PZ
      • QT
      • RM
      • RMVB
      • RV
      • SEC
      • SRT
      • TS
      • VID
      • VOB
      • VP6
      • VP8
      • VP9
      • VTT
      • WEBM
      • WMV
      • XVID
    • Webbestandsindelingen
      • Webbestandsindelingen
      • A4P
      • A5W
      • AAE
      • ADR
      • AEX
      • ALX
      • AN
      • AP
      • APKG
      • APPCACHE
      • ARO
      • ASA
      • ASAX
      • ASCX
      • ASHX
      • ASMX
      • ASP
      • ASPX
      • ASR
      • ATOM
      • ATT
      • AWM
      • BML
      • BOK
      • BR
      • BWP
      • CDF
      • CER
      • CFM
      • CFML
      • CHA
      • CHAT
      • CHM
      • CMS
      • CODASITE
      • CON
      • CRDOWNLOAD
      • CRL
      • CRT
      • CSHTML
      • CSP
      • CSR
      • CSS
      • DAP
      • DBM
      • DCR
      • DER
      • DHTML
      • DISCO
      • DISCOMAP
      • DML
      • DO
      • DOCHTML
      • DOCMHTML
      • DOTHTML
      • DOWNLOAD
      • DRAWIO
      • DWT
      • ECE
      • EDGE
      • EPIBRW
      • ESPROJ
      • EWP
      • FCGI
      • FMP
      • FREEWAY
      • FWP
      • FWTEMPLATE
      • FWTEMPLATEB
      • GDOC
      • GDOCX
      • GNE
      • GSP
      • HAR
      • HDM
      • HDML
      • HTACCESS
      • HTC
      • HTM
      • HTML
      • HTX
      • HXS
      • HYPE
      • JHTML
      • JNLP
      • JS
      • JSON
      • JSPA
      • KEY
      • KIT
      • LESS
      • MHT
      • MHTML
      • MJS
      • OBML
      • OBML15
      • OBML16
      • P7B
      • P7C
      • PAC
      • PART
      • PEM
      • PRO
      • RHTML
      • RJS
      • RSS
      • Sass
      • SCSS
      • SHTML
      • SPC
      • SSP
      • STC
      • STML
      • TPL
      • TS
      • URL
      • VDW
      • VRT
      • WBS
      • WEBBOOKMARK
      • WEBLOC
      • WEBSITE
      • WHTT
      • WSDL
      • XAML
      • XD
      • XHT
      • XHTML
      • XML
      • XOJ
      • XOML
      • XSLT
      • XUL
      • ZUL
    • Bestandsindelingen voor tekstverwerking
      • Bestandsindelingen voor tekstverwerking
      • ASD
      • DOC
      • DOCM
      • DOCX
      • DOT
      • DOTM
      • DOTX
      • DSC
      • FAQ
      • FODT
      • IPYNB
      • LATEX
      • LTX
      • MAN
      • MD
      • ODM
      • ODT
      • OTT
      • QBL
      • QPF
      • RTF
      • TXT
      • WPD
      • WPS
    • visio
      • Visio-bestandsindelingen
      • VDW
      • VDX
      • VSD
      • VSDM
      • VSDX
      • VSS
      • VSSM
      • VSSX
      • VST
      • VSTM
      • VSTX
      • VSX
      • VTX
    1. Huis
    2. Programmeren
    3. R

    What's on this Page

      • Wat is een R-bestand?
      • Korte geschiedenis
      • Technische specificatie
      • R Voorbeeld bestandsindeling
        • Syntaxis
        • Functie
        • Datamodellering
      • Referentie

    Wat is een R-bestand?

    Een bestand met de extensie .r behoort tot de programmeertaal R. Deze taal is gespecificeerd voor statistische berekeningen en is populair onder de gemeenschap van statistici. Gegevensanalyse en ontwikkeling van statistische software zijn twee hoofdcategorieën die door deze taal worden uitgevoerd op het gebied van datamining. Een ander voordeel van het gebruik van deze taal en software is dat het de mogelijkheid biedt van statische grafieken die nuttig zijn bij de productie van kwaliteitsgrafieken. Voor de dynamische en interactieve graphics worden enkele aanvullende pakketten gebruikt.

    De software van deze taal bevat een General Public License, zodat de beschikbaarheid ervan gratis is. De code van R is meestal geschreven in talen op hoog niveau zoals C en R zelf ook. De software omvat een opdrachtregelinterface en de beschikbaarheid van interfaces van derden, zoals grafische gebruikersinterfaces van RStudio en Jupyter (notebookinterface). Er zijn statistische technieken die worden gebruikt bij de implementatie van bibliotheken van R. Het omvat ook modellering zoals lineair en niet-lineair.

    Korte geschiedenis

    Deze taal is een implementatie van de semantiek van lexicale scoping samen met de S-taal. In 1976 ontwikkelde John Chambers bij Bell Labs de S-taal. Zelfs is er geen wijziging in veel van de code van S-PLUS wanneer deze in R-taal wordt gebruikt. In 1995 maakten Martin Maechler en zijn metgezellen de R-taal samen met de gratis software onder de algemene openbare licentie.

    De officiële aankondiging van het Comprehensive R Archive Network werd gedaan op 23 april 1997. In 2000 werd versie 1. 0, de eerste stabiele bèta, officieel uitgebracht. De eerste release vond plaats in 1995, terwijl het CRAN (comprehensive R archive network) in latere jaren werd uitgebracht.

    In 1997 werd een kernteam gevormd voor de verdere ontwikkeling van de taal na de eerste releases. Veel updates en gewijzigde versies werden in de latere jaren uitgebracht en bevatten nieuwe functies volgens moderne besturingssystemen en technologie. De recente wijziging werd in mei 2021 ingevoerd.

    Technische specificatie

    R is een tolktaal en voor toegang tot deze taal is een opdrachtregeltolk vereist. De berekeningen zoals som worden getypt in het commando promo en de resultaten worden getoond na interpretatie. Gegevens en code worden weergegeven via S-expressies. Een andere specificatie van deze taal is dat deze kan worden gebruikt als een gereedschapskist die de mogelijkheid biedt voor algemene matrixberekening.

    Er worden verschillende toepassingen gebruikt om de R-code uit te voeren en te bewerken. Geïntegreerde ontwikkelomgevingen zoals Rattle GUI, RKWard zijn ook beschikbaar om de code van de R-programmeertaal uit te voeren. Een andere software van Microsoft, bekend als Microsoft R open, is ook beschikbaar met compatibiliteit met R-distributie voor complexe berekeningen zoals multithreaded berekeningen. R is een van de vijf geselecteerde programmeertalen over de hele wereld waaruit de Apache Spark API bestaat.

    R-taal ondersteunt procedureel programmeren samen met de functies. Vooral voor sommige functies ondersteunt het echter OOP (objectgeoriënteerd programmeren) samen met de generieke functies. Waarden worden gebruikt om argumenten door te geven als functies en hun evaluatie vindt plaats wanneer ze worden gebruikt, wat betekent dat ze niet worden geëvalueerd wanneer functies worden aangeroepen.

    R Voorbeeld bestandsindeling

    Syntaxis

    > x <- 1:6 # Create a numeric vector in the current environment
    > y <- x^2 # Create vector based on the values in x.
    > print(y) # Print the vector’s contents.
    [1]  1  4  9 16 25 36
    
    > z <- x + y # Create a new vector that is the sum of x and y
    > z # return the contents of z to the current environment.
    [1]  2  6 12 20 30 42
    
    > z_matrix <- matrix(z, nrow=3) # Create a new matrix that turns the vector z into a 3x2 matrix object
    > z_matrix 
         [,1] [,2]
    [1,]    2   20
    [2,]    6   30
    [3,]   12   42
    
    > 2*t(z_matrix)-2 # Transpose the matrix, multiply every element by 2, subtract 2 from each element in the matrix, and return the results to the terminal.
         [,1] [,2] [,3]
    [1,]    2   10   22
    [2,]   38   58   82
    
    > new_df <- data.frame(t(z_matrix), row.names=c('A','B')) # Create a new data.frame object that contains the data from a transposed z_matrix, with row names 'A' and 'B'
    > names(new_df) <- c('X','Y','Z') # set the column names of new_df as X, Y, and Z.
    > print(new_df)  #print the current results.
       X  Y  Z
    A  2  6 12
    B 20 30 42
    
    > new_df$Z #output the Z column
    [1] 12 42
    
    > new_df$Z==new_df['Z'] && new_df[3]==new_df$Z # the data.frame column Z can be accessed using $Z, ['Z'], or [3] syntax, and the values are the same. 
    [1] TRUE
    
    > attributes(new_df) #print attributes information about the new_df object
    $names
    [1] "X" "Y" "Z"
    
    $row.names
    [1] "A" "B"
    
    $class
    [1] "data.frame"
    
    > attributes(new_df)$row.names <- c('one','two') ## access and then change the row.names attribute; can also be done using rownames()
    > new_df
         X  Y  Z
    one  2  6 12
    two 20 30 42
    

    Functie

    # Declare function “f” with parameters “x”, “y“
    # that returns a linear combination of x and y.
    f <- function(x, y) {
      z <- 3 * x + 4 * y
      return(z) ## the return() function is optional here
    }
    
    > f(1, 2)
    [1] 11
    
    > f(c(1,2,3), c(5,3,4))
    [1] 23 18 25
    
    > f(1:3, 4)
    [1] 19 22 25
    

    Datamodellering

    > x <- 1:6 # Create x and y values
    > y <- x^2  
    > model <- lm(y ~ x)  # Linear regression model y = A + B * x.
    > summary(model)  # Display an in-depth summary of the model.
    
    Call:
    lm(formula = y ~ x)
    
    Residuals:
          1       2       3       4       5       6
     3.3333 -0.6667 -2.6667 -2.6667 -0.6667  3.3333
    
    Coefficients:
                Estimate Std. Error t value Pr(>|t|)   
    (Intercept)  -9.3333     2.8441  -3.282 0.030453 * 
    x             7.0000     0.7303   9.585 0.000662 ***
    ---
    Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
    
    Residual standard error: 3.055 on 4 degrees of freedom
    Multiple R-squared:  0.9583, Adjusted R-squared:  0.9478
    F-statistic: 91.88 on 1 and 4 DF,  p-value: 0.000662
    
    > par(mfrow = c(2, 2))  # Create a 2 by 2 layout for figures.
    > plot(model)  # Output diagnostic plots of the model.
    

    Referentie

    • R - door Wikipedia

    See Also

    • NUT - Eekhoorn Taalbestand
    • HTA - HTML-toepassingsbestanden
    • MRC - mIRC-scripttaalbestand
    • LUA - Programmeertaalbestand
    • TCL - Tооl оmmаand taalbestand
     
     Nederlands
    Close
     English
     Deutsch
     日本
     中文
     русский
     Français
     한국인
     Español
     Italiano
     हिन्दी
     Indonesian
     Português
     عربي
     Türkçe
     Ελληνικά
     ไทย
     עִברִית
     Svenska
     українська
     Tiếng Việt
     български
     Magyar
     čeština
     Română
     Polski