Topics
R
About this topic: Articles tagged __TAG__
Showing 148 articlesRelated tags
Topics
Articles
Showing 148 articles
How-tos
How to Count Number of Observations in R
Count every row, rows that meet conditions, or occurrences by group in an R data frame with base R and dplyr.
↗
How-tos
How to Perform K-Means Clustering in Base R
This article shows how to perform K-means clustering using base R functions. All steps, including the elbow bend plot to choose K, and the PCA scatter plot when there are more than …
↗
How-tos
How to Export Data Frame to CSV in R
Learn how to export an R data frame to CSV with write.csv(), write.table(), data.table::fwrite(), and readr::write_csv().
↗
How-tos
How to Create a 3D Surface Plot From (x,y,z) Coordinates
Create a 3D surface plot in R from scattered (x, y, z) observations by interpolating a grid with akima and plotting it with rgl.
↗
How-tos
How to Find a Row Number in R
Find matching row positions in R data frames and vectors with which() and match().
↗
How-tos
e in R
This tutorial demonstrates how to calculate Euler's number in R using various methods, including the `exp(1)` function call, Taylor series expansion, and limit definition. Perfect …
↗
How-tos
How to Restart R in RStudio
Learn how to restart an R session in RStudio from the interface or with the rstudioapi package, and what a restart resets.
↗
How-tos
How to Run an R Script From the Command Line
Learn how to run an R script from a terminal or command prompt with Rscript, pass arguments, schedule a cron job, and track scripts with Git.
↗
How-tos
How to Remove Rows With NA in One Column in R
This tutorial demonstrates how to remove rows with NA in one column from a dataframe in R.
↗
How-tos
How to Use the Predict Function on a Linear Regression Model in R
Learn how to use R's predict() with a fitted linear regression model, format newdata, and match its feature column to the model formula.
↗
How-tos
How to Rotate Axis Labels in R
Learn how to rotate tick labels in Base R and ggplot2, and how to align them after rotation.
↗
How-tos
Convert a Factor to Numeric in R
Learn how to convert R factors to numeric labels safely, distinguish factor codes from values, and handle categorical or invalid labels.
↗
How-tos
How to Change ggplot2 Axis Tick Labels in R
Change ggplot2 axis tick labels with discrete mappings, continuous breaks and formatters, and readable styling for crowded labels.
↗
How-tos
How to Clear the Environment in R
In this tutorial, learn how to clear the environment in R without restarting your session. Discover various methods, including using the rm() function, clearing specific objects, …
↗
How-tos
How to Simulate Rnorm for Many Observations Using Different Mean and Sd Values in R
This article introduces how to simulate rnorm for many observations using different mean and sd values in R. Learn effective methods for generating random numbers, visualizing data …
↗
How-tos
How to Create a Large Data Frame in R
This article demonstrates how to create a large data frame in R using various methods, including the base data.frame function, the modern tibble package, and the high-performance …
↗
How-tos
Nested for Loops in R
This article explores nested for loops in R, providing practical examples and insights into their usage. Learn how to efficiently iterate through multi-dimensional data, generate …
↗
How-tos
How to Split String by Delimiter in R
This article demonstrates how to split strings by delimiter in R, providing various methods including the strsplit() function and the stringr package. Learn effective techniques …
↗
How-tos
How to Convert Factor to Date in R
This tutorial demonstrates how to convert factor to date in R using the as.Date() and ymd() functions. Learn effective methods to manipulate date data in your R projects, enhancing …
↗
How-tos
How to Convert Strings to Lower Case in R
This tutorial demonstrates how to convert strings to lower case in R using various methods. Learn to use the built-in tolower() function, the stringr package, and dplyr for data …
↗
How-tos
How to Read XML in R
This tutorial demonstrates how to read XML in R using popular packages like XML and xml2. Learn to parse XML files, extract data, and create data frames for analysis. Enhance your …
↗
How-tos
How to Set Up R Portable
This tutorial demonstrates how to set up R Portable, a flexible and lightweight version of R that runs from USB drives. Learn to download, install, and configure R Portable, and …
↗
How-tos
How to Append Elements to a List in R
This tutorial provides a comprehensive guide on how to append elements to a list in R. Learn various methods, including using loops for efficient data manipulation. Discover the …
↗
How-tos
How to Create Stacked Histogram in R
This tutorial demonstrates how to create stacked histograms in R using the ggplot2 package. Learn how to prepare your data, create visually appealing stacked histograms, and …
↗
No articles found
Try clearing the filters.