R-Console basic commands
1. To enter data in vertical form
x = scan()
for example
> x=scan()
1: 1
2: 2
3: 3
4: 4
!
!
!
and so on
2. To enter data in horizontal form
>y=c(1,3,5,7.......and so on)
1. To enter data in vertical form
x = scan()
for example
> x=scan()
1: 1
2: 2
3: 3
4: 4
!
!
!
and so on
2. To enter data in horizontal form
>y=c(1,3,5,7.......and so on)
No comments:
Post a Comment