Accrual Principle in Accounting

Kiran Kumar Panigrahi
Updated on 17-Nov-2021 05:10:34

483 Views

The Accrual Principle is a concept in Accounting where the financial transactions are recorded during the same time period in which they occur. Note that the actual cash flow may occur at a later stage. For example, suppose a company supplies goods worth $50, 000 in the first quarter of financial year, but the company receives the payment in the second quarter. In such a case, if we apply the Accrual Principle, then the company will record this financial transaction in its books in the first quarter itself.The Accrual Principle is useful when it is important to match the revenues ... Read More

What is Value-Based Pricing

Kiran Kumar Panigrahi
Updated on 17-Nov-2021 05:09:20

389 Views

Cost-Plus Pricing Vs Value-Based PricingIn general, companies calculate the selling price of a product or service based on the costs incurred in manufacturing that product or delivering that service. This is what we call Cost-Plus Pricing strategy where the price of a product is proportional to the manufacturing cost.We very well understand that a superior brand can charge slightly more for a product than a less-known company that produces the same product, which is the usual case. There's a brand value attached to products that belong to a superior brand. In such cases, the price difference between the products do ... Read More

What is Marginal Benefit

Kiran Kumar Panigrahi
Updated on 17-Nov-2021 05:00:32

347 Views

We can define Marginal Benefit as the maximum amount a buyer can pay for an extra unit of product purchased after the first unit. Consumers normally tend to compare the marginal cost of purchasing an extra unit with the marginal benefit derived from purchasing it. In other words, we can also define Marginal Benefit as the satisfaction that a consumer gets after purchasing an extra unit. It is also known as marginal utility.How Do Companies Use Marginal Benefit?Marginal Benefit is a valuable tool that is heavily used in business market research and advertising. Companies evaluate marginal benefits and use that ... Read More

Fill Missing Values After Merging Data Frames in R

Nizamuddin Siddiqui
Updated on 16-Nov-2021 07:12:20

2K+ Views

To fill missing values after merging the data frames with another value than NA in R, we can follow the below steps −First of all, create two data frames.Then, merge the data frames by a common column between the two.After that, replace the NAs with another value.ExampleCreate the first data frameLet’s create a data frame as shown below −ID

Use Top N Function from dplyr in R

Nizamuddin Siddiqui
Updated on 16-Nov-2021 06:53:21

867 Views

To use top_n function from dplyr to extract rows based on one column ordered indescending order in R, we can follow the below steps −First of all, create a data frame.Then, use top_n function dplyr package along with arrange and desc function to extract rows based on one column ordered in descending order.ExampleCreate the data frameLet’s create a data frame as shown below −x

Create Quantile Regression Plot with Larger Line Widths using ggplot2 in R

Nizamuddin Siddiqui
Updated on 16-Nov-2021 06:48:20

275 Views

To create quantile regression plot with larger width of lines using ggplot2 in R, we can follow the below steps −First of all, create a data frame.Then, use stat_quantile function with size argument and geom_point function of ggplot2 package to create quantile regression plot.ExampleCreate the data frameLet’s create a data frame as shown below −x

Subset a Matrix in R by Specifying Columns that Contain NA

Nizamuddin Siddiqui
Updated on 16-Nov-2021 06:41:17

186 Views

To subset a matrix in R by specifying columns that contains NA, we can follow the below steps −First of all, create a matrix with some NAs.Then, use is.na along with subset function to subset the matrix by specifying columns that contains NA.ExampleCreate the matrixLet’s create a matrix as shown below −M

Remove Row from Matrix in R by Name

Nizamuddin Siddiqui
Updated on 16-Nov-2021 06:33:30

2K+ Views

To remove a row from matrix in R by using its name, we can follow the below steps −First of all, create a matrix.Then, add names to rows of the matrix.After that, subset the matrix by deselecting the desired row with negation and single square brackets for subsetting.ExampleCreate the matrixLet’s create a matrix as shown below −M

Remove Column from Matrix in R Using Its Name

Nizamuddin Siddiqui
Updated on 16-Nov-2021 06:23:39

5K+ Views

To remove a column from matrix in R by using its name, we can follow the below steps −First of all, create a matrixThen, add names to columns of the matrix.After that, subset the matrix by deselecting the desired column with negation and single square brackets for subsetting.ExampleCreate the matrixLet’s create a matrix as shown below −M

Find Row Total of Columns with Same Name in Data Table Object in R

Nizamuddin Siddiqui
Updated on 16-Nov-2021 06:10:07

210 Views

To find the row total of columns having same name in data.table object in R, we can follow the below steps −First of all, create a data.table with some columns having same name.Then, use tapply along with colnames and sum function to find the row total of columns having same name.ExampleCreate the data.tableLet’s create a data.table as shown below −library(data.table) DT

Advertisements