23
Mathematical, Logical, Assign values 1 Dr Vinod on Basics of R 8971073111 [email protected]

Basics of r commands

  • Upload
    kksijo

  • View
    130

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

1

Mathematical, Logical, Assign values

Page 2: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

2

Change Assigned values

Page 3: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

3

Functions

Page 4: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

4

Vectors

Page 5: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

5

Sequence VectorAfter hash, it is

ignored by R

Page 6: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

6

Sequence Vector

Page 7: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

7

Change & Add in Vector

Page 8: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

8

Vector Math

Page 9: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

9

Vector Addition & Multiplication

1*4=4, 2*5=10, 3*6=18

Page 10: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

10

Vector: compare items

Page 11: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

11

NA value

Page 12: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

12

Help: > help(sum)

Page 13: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

13

Matrices

Page 14: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

14

Vector to Matrix

Page 15: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

15

Dim command for matrix

Page 16: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

16

Matrix Access

Page 17: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

17

Data Frames

Page 18: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

18

Data Frames

Page 19: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

19

Access Data Frame

Page 20: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

20

Merging FilesFile in csv

format

File in txt format

Page 21: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

21

Merging Files: First import

Page 22: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

22

Name the merged file

Page 23: Basics of r commands

Dr Vinod on Basics of R 8971073111 [email protected]

23

Save merged file at Desktop

> write.csv(steve,"C:/Users/inurture1/Desktop/steve.csv")