Second record of R language learning

data type 1. Assignment operation: x < - 10 x is the variable name, < - is the assignment symbol, 10 is the value (R language is different from C, JAVA, Python) "=" is also OK, but the efficiency is not as high as 2. Data members: character type, numerical type, boolean type, complex typ ...

Added by fred2k7 on Wed, 11 Mar 2020 12:21:10 +0200

R language introduction: vector index

The content of this section is based on the previous assignment of the most basic vector of R language. After learning R, I feel very comfortable about the index of vector. Because this is much better than Python's index. The index starts from where the index starts and ends where it ends, instead of inputting 0 as Python does sometimes, it act ...

Added by ev5unleash on Tue, 25 Feb 2020 15:47:18 +0200

R Language Learning Notes

R Language Learning setwd("D:\R Language Learning")#Change working path write.table(y, "sample.csv", sep=",")#Save the file > x=scan()#Manual Input 1: 1 2: 2 3: 3 4: 5 5: Read 4 items > x [1] 1 2 3 5 x=scan("a.txt") as.array() as.character() as.data.frame() as. ...

Added by mynameisbob on Fri, 24 Jan 2020 05:27:30 +0200

How to just the graphic location with the grid package just parameter

thinking The drawing functions of    grid all contain just, but how to adjust the position of the figure with the just parameter is always very puzzling, so I wrote a code to explore it. The idea is very simple: put a 2 * 2 layout viewport in each layout, and each viewport uses different just parameters. The rectangle after just is di ...

Added by usamaalam on Tue, 31 Dec 2019 15:28:28 +0200

How to change a matrix into a triple in R (row, col, value)

Search on bing: How to change the matrix to triple form and search the result on bing: All kinds of C language can't find the way to realize R language R language writing cycle is very slow, just use the ready-made package Matrix Matrix is a very powerful package. It can convert matrix to sparse matrix, change 0 to... And sav ...

Added by ph0ngwh0ng on Tue, 26 Nov 2019 22:02:06 +0200