Articles by Jim

droplevels in R with examples

June 8, 2022 | Jim

The post droplevels in R with examples appeared first on Data Science Tutorials droplevels in R with examples, To remove unneeded factor levels, use R’s droplevels() function. This function comes in handy when we need to get rid of factor levels that are no longer in use as a ... [Read more...]

Cumulative Sum calculation in R

June 7, 2022 | Jim

The post Cumulative Sum calculation in R appeared first on Data Science Tutorials Cumulative Sum calculation in R, using the dplyr package in R, you can calculate the cumulative sum of a column using the following methods. Best online course for R programming – Data Science Tutorials Approach 1: Calculate Cumulative Sum ... [Read more...]

How to Count Distinct Values in R

June 7, 2022 | Jim

The post How to Count Distinct Values in R appeared first on Data Science Tutorials How to Count Distinct Values in R?, using the n_distinct() function from dplyr, you can count the number of distinct values in an R data frame using one of the following methods. With the ... [Read more...]

Count Observations by Group in R

June 6, 2022 | Jim

The post Count Observations by Group in R appeared first on Data Science Tutorials Count Observations by Group in R, want to count the number of observations by the group. Fortunately, the count() function from the dplyr library makes this simple. Using the data frame below, this tutorial shows numerous ... [Read more...]

How to add columns to a data frame in R

June 5, 2022 | Jim

The post How to add columns to a data frame in R appeared first on Data Science Tutorials How to add columns to a data frame in R?, To add one or more columns to a data frame in R, use the mutate() function from the dplyr package. With the ... [Read more...]

How to Remove Columns from a data frame in R

June 4, 2022 | Jim

The post How to Remove Columns from a data frame in R appeared first on Data Science Tutorials Remove Columns from a data frame, you may occasionally need to remove one or more columns from a data frame. Fortunately, the select() method from the dplyr package makes this simple. Remove ... [Read more...]

Remove Rows from the data frame in R

June 3, 2022 | Jim

The post Remove Rows from the data frame in R appeared first on Data Science Tutorials Remove Rows from the data frame in R, To remove rows from a data frame in R using dplyr, use the following basic syntax. Detecting and Dealing with Outliers: First Step – Data Science Tutorials 1. ... [Read more...]

Arrange the rows in a specific sequence in R

June 2, 2022 | Jim

The post Arrange the rows in a specific sequence in R appeared first on Data Science Tutorials Arrange the rows in a specific sequence in R, Frequently, you’ll want to arrange the rows in a data frame in R in a specified order. Fortunately, the arrange() function from the ... [Read more...]

Arrange Data by Month in R with example

June 1, 2022 | Jim

The post Arrange Data by Month in R with example appeared first on Data Science Tutorials Arrange Data by Month in R, To easily arrange data by month, use the floor_date() function from the lubridate package in R. The following is the fundamental syntax for this function. library(tidyverse) ... [Read more...]

Interactive 3d plot in R-Quick Guide

May 31, 2022 | Jim

The post Interactive 3d plot in R-Quick Guide appeared first on Data Science Tutorials Interactive 3d plot in R, This R lesson shows how to create dynamic 3d graphics with R and the scatter3d function from the package car. The rgl package is used by the scatter3d() function ...
[Read more...]

How to Perform a Log Rank Test in R

May 30, 2022 | Jim

The post How to Perform a Log Rank Test in R appeared first on Data Science Tutorials  How to Perform a Log Rank Test in R, The most frequent technique to compare survival curves between two groups is to use a log-rank test. The following hypotheses are used in this ...
[Read more...]

How to compare variances in R

May 28, 2022 | Jim

The post How to compare variances in R appeared first on Data Science Tutorials How to compare variances in R?, The F-test is used to see if two populations (A and B) have the same variances. When should the F-test be used? A comparison of two variations is useful in ... [Read more...]

Best Books on Data Science with Python

May 28, 2022 | Jim

The post Best Books on Data Science with Python appeared first on Data Science Tutorials Best Books on Data Science with Python, In the subject of data science, Python is one of the most extensively used programming languages. Pandas, NumPy, scikit-learn, Matplotlib, and SciPy are just a few of the ...
[Read more...]

Two Sample Proportions test in R-Complete Guide

May 27, 2022 | Jim

The post Two Sample Proportions test in R-Complete Guide appeared first on Data Science Tutorials Two Sample Proportions test in R, To compare two observed proportions, the two-proportions z-test is utilized. This article explains the fundamentals of the two-proportions *z-test and gives practical examples using R software. We have two ... [Read more...]

Calculate the P-Value from Chi-Square Statistic in R

May 27, 2022 | Jim

The post Calculate the P-Value from Chi-Square Statistic in R appeared first on Data Science Tutorials Calculate the P-Value from Chi-Square Statistic in R, You’ll get a Chi-Square test statistic every time you run a Chi-Square test. The p-value associated with this test statistic can then be used to ... [Read more...]

Calculate the p-Value from Z-Score in R

May 27, 2022 | Jim

The post Calculate the p-Value from Z-Score in R appeared first on Data Science Tutorials Calculate the p-Value from Z-Score in R, In statistics, we frequently want to know the p-value associated with a specific z-score obtained from a hypothesis test. We can reject the null hypothesis of our hypothesis ... [Read more...]

One sample proportion test in R-Complete Guide

May 25, 2022 | Jim

The post One sample proportion test in R-Complete Guide appeared first on Data Science Tutorials One sample proportion test in R, when there are just two categories, the one proportion Z-test is used to compare an observed proportion to a theoretical one. This article explains the fundamentals of the one-proportion ... [Read more...]

Artificial Intelligence Examples-Quick View

May 24, 2022 | Jim

The post Artificial Intelligence Examples-Quick View appeared first on Data Science Tutorials - Are you curious about Artificial Intelligence Examples? If you answered yes, then this article is for you.  We’ll go over some Artificial Intelligence instances here. So, spend a few minutes reading this article to learn everything ... [Read more...]
1 2 3

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)