CSV file in R

CSV stands for Comma Separated Values file, which is a plain text file that contains a list of data. CSV file in R is used for exchanging the data between different applications. Like contact managers and databases mostly support CSV files. Getting and Setting the Working Directory The getwd() function is used to check which … Read more

T-Test in R

As per statistics, the T-test in R is used to determine whether the mean of the two groups is equal to each other. The assumption for the test is that both groups are sampled from a normal distribution with equal fluctuation. There are two hypotheses used: Null hypothesis: It is assumed that the two means … Read more

Linear Regression in R

Linear Regression in R predicts the output of the y variable based on one or more input x variables. In simple words, it is used to establish a relationship between output and input variables. The input and output variables are related through an equation in which the exponent of both these variables is 1. A … Read more

Distribution in R

There are two types of distribution in R as follow: Normal Distribution Binomial Distribution Normal Distribution in R The random collection of data from independent sources is known as normal distribution in R. Now we know that we will get a bell shape curve if we plot a graph with the value of the variable … Read more

PHP Array

PHP array is a data structure that contains one or more related types of values in a single value. For example if you want to store 500 names then instead of defining different variable for each name its easy to define an array of 500 length. Multiple values can be stored in an array within … Read more

PHP Multidimensional Array

The array of arrays in PHP is  known as a multidimensional array. The array’s elements can all be arrays, and they can also contain additional sub-arrays. It enables the storage of tabular data in an array. PHP multidimensional arrays can be expressed as a matrix, with row * column. PHP Multidimensional Array Definition

PHP Numeric Array

PHP Numeric Array is an array in which numbers, strings, and any other object can be stored, but their indexes will be represented by numbers. Each element of the array is represented by an index number that begins with 0. PHP Numeric Array Definition There are two ways of defining PHP numeric array: 1. 2. … Read more

PHP Form Required Fields

This chapter explains how to make input fields required and, if necessary, provide error messages. PHP Form Required Fields Let’s look at a PHP forĀ fields, some of which cannot be left blank and must be filled out: Field Validation Rules Name Required+ It can only contain letters and whitespaces. E-mail Required. + Must contain a … Read more

PHP Form Validation

PHP Form Validation is the process of verifying the user’s input. In PHP, there are two forms of validation. The following is a list of them: Client-Side Validation: It is used for field validation and is performed on client machine web browsers. Server-Side Validation: After form submission, data is forwarded to a server, which performs validation checks. … Read more

PHP Complete Form

Php Complete form example will be shown in this chapter: Let’s look at how to maintain input field data saved even after the form has been submitted. PHP Complete Form-Keep field value We add a small PHP script inside the value attribute of the following input fields: name, email, and website, to show the values … Read more