R Data Structure Dataset

This section introduces R data structures: One-dimensional data structure Vector; 2-dimensional data structure Matrix; n-dimensional data structure Array; tabular data structure Data Frame; and data structure List which can store any other type data objects. And this section also introduce how to create R data structure: using read.table() function to read text or csv files to create a data frame; using read.csv() function to read csv file to create a data frame. This section also introduces several functions: with().

How to read excel spreadsheet into a data frame in R

We provide effective and economically affordable training courses for R and Python, click here for more details and course registration…

8 months ago

Some simple differences between R and Python

We provide effective and economically affordable training courses for R and Python, click here for more details and course registration…

8 months ago

Create, index and modify lists in R

We provide effective and economically affordable training courses for R and Python, click here for more details and course registration…

8 months ago

How to generate random numbers from various statistical distributions using R

n this post, we show how to generate random numbers into vector and matrix in R programming, from various statistical…

10 months ago

Creating a random sequence using sample() in R

It is not uncommon to generate random sequences in R programming. sample() function provides the feasibility of generating such random…

10 months ago

Creating data frames using read.table() and read.csv() in R

R language provides several useful functions for importing delimited files and creating data frames. These delimited files are often stored…

12 months ago

How to create factor variables in R programming

Categorical variables, including nominal and ordinal variables in R programming language are called factor variables. For example, gender(male/female) is nominal,…

1 year ago

Creating and indexing a list in R

list is a type of data structure in R programming language. Unlike other data structures, especially matrix and vector, in…

1 year ago

Create data frame in R using read.table() function

read.table() function in R is often used when a delimited ASCII file (e.g. text file or csv file) is to…

1 year ago

Creating data frames in R using data.frame()

Data frames are the most widely used data structures in R programming. Unlike each element in vector/matrix/array must have same…

1 year ago