Data Observation Function: How to Create and Use Data Observation Function in R Programming Myanmar

Data Observation Function: How to Create and Use Data Observation Function in R Programming Myanmar

Data Observation Function: How to Create and Use Data Observation Function in R Programming Myanmar
Build Functions in R @WLH Education

Some sources or some study uses data observations as the number of rows while some use as the total number of rows and columns. Finally it depends on the person who want to create on what kinds of functions. Today we are going to build the data observation functions by means of the multiplication of number of rows and number of columns.
WHAT IS NROW() AND NCOL()?
To know the use of nrow and ncol terms. In R, it can be simply code:
• ?nrow()
• ?ncol()
BUILD DATA OBSETVATION FUNCTION
The data observation in this video is built based on the multiplication of the number of rows and the number of columns. Therefore, in R code, it can be written like:
• Function(data){…}
• Inside the curve bracket, we can put the formula such as nrow(data) multiplied by ncol(data)
SAVE THE R SCRIPT FILE
Now, the function is already created and now ready to use. To use the created function, open a new R script.
• First make sure, the function script is located in the set working directory or
• The function script is copied from somewhere then paste into the current working directory.
• Then it is time to import the function
HOW TO IMPORT FUNCTIONS OR SCRIPT FILE
The created function from the script file can be imported by using “source()” functions in R like follows:
• Source(“Functions in R.R”)
• Working directory or R Project is recommended to set before writing the code so that the code can be shorten.
Before using the function, the data needs to be imported first.
HOW TO IMPORT THE DATA
The data can be imported using:
• Read.csv(“File name.csv”) if working directory or R project has been already set
• Read.csv(file.choose(), header=TRUE) if no working directory is set up then the file will be imported manually.
APPLY THE DATA OBSERVATION FUNCTION
• The function how it is built can be known by coding “data_obs”’
• The function for a specific can be applied by coding “data_obs(data)”
VALIDATE OR CHECK THE ANSWERS
The results can be checked whether they are correct or not:
• Visually by coding simply “data” to see in the console
• Visually by coding “View(data)” to see in the separate window
• Accordingly with formula by coding “nrow(data)*ncol(data)”

To Install R and learn more about R language - https://cran.r-project.org/
To Install R Studio - https://www.rstudio.com/products/rstudio/
To learn more about Rstudio - https://www.rstudio.com/
To install R and set preferences in Myanmar language - Learn R - Programming Basic to Advance | Myanmar Language Ep.1
https://youtu.be/QqBQNARoPXI

Popular Uploads from R Programming Myanmar and Build Functions in R
Build Functions R: Create Formula to Build FUNCTIONS in R Programming Myanmar
https://youtu.be/PbSCNUt89_w

R Project Use: Difference Between R Project and R Script in Use in R Programming Myanmar
https://youtu.be/8kKtkV0uh4w

R Importing Functions: How to Call or Import Created Functions and Run in R Programming Myanmar
https://youtu.be/pMdwWdxZuGU

How to quick data analysis with GG-Plot R-Programming in Myanmar Language
https://youtu.be/QlaQAirViyE

Learn R - Programming Basic to Advance | Myanmar Language Ep.1
https://youtu.be/QqBQNARoPXI

R Data Size Function: How to Build and Data Size Function in R Programming Myanmar
https://youtu.be/VGcz3LUTbgg

R Import Data: 2 Ways to Import Data into R Programming for Data Science Myanmar
https://youtu.be/Xz41m8D_tpc

Build Functions in R 2: Uses of round function to deal with decimals in R Programming Myanmar
https://youtu.be/kkWR9QxFxAE

Follow Us on Facebook:
https://www.facebook.com/WaiLinHtetUSYD/

WLH Education Channel @WLH Education တွင်တင်ဆက်ပြသနေသော အစီအစဉ်များ
https://www.youtube.com/channel/UCZu4G6gPMucHDwqPvtzUKkQ/playlists?

အစီအစဉ် - ၁။ Microsoft Word Basic to Advance Course
https://www.youtube.com/playlist?list=PL0d0T6i8c-JUeYO0HUQQYL9SOasIQ-uid?sub_confirmation=1

အစီအစဉ် - ၂။ Microsoft Excel Basic to Advance Course
https://www.youtube.com/playlist?list=PL0d0T6i8c-JXkX-Ows6CBGIoCUsz8N2an?sub_confirmation=1

အစီအစဉ် - ၃။ R-Programming for Data Science Course
https://www.youtube.com/playlist?list=PL0d0T6i8c-JV7Zdl4P_hFuTQmpROSnkq1?sub_confirmation=1

အစီအစဉ် - ၄။ Advanced Microsoft Excel (FUNCTIONS)
https://www.youtube.com/playlist?list=PL0d0T6i8c-JUCun-bJU3v1xaTxKnXaWdS?sub_confirmation=1

အစီအစဉ် - ၅။ Finance and Accounting Analyst (Excel)
https://www.youtube.com/playlist?list=PL0d0T6i8c-JXva2nZc6KH5e4yDZvTQrxl?sub_confirmation=1

အစီအစဉ် - ၆။ Build Functions in R (Series 1 - 7)
https://www.youtube.com/playlist?list=PL0d0T6i8c-JXlg7Uy4019Hg5xWBV7xt5u

Data Observation Functiondataobservation

Post a Comment

0 Comments