R HowToReadAndAnlyzeCSV
demo@ubuntu:~/SelfStudy/R$ R
R version 3.4.4 (2018-03-15) — “Someone to Lean On”
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type ‘license()’ or ‘licence()’ for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type ‘contributors()’ for more information and
‘citation()’ on how to cite R or R packages in publications.
Type ‘demo()’ for some demos, ‘help()’ for on-line help, or
‘help.start()’ for an HTML browser interface to help.
Type ‘q()’ to quit R.
[Previously saved workspace restored]
data – read.csv(“test.csv”)
print (data)
A B C D E F G H I
1 1 2 3 4 5 6 7 8 9
2 a b c d e f g h i
3 i r h n h h t s t
4 1 2 3 4 5 6 7 8 9
5 a b c d e f g h i
6 i r h n h h t s t
7 1 2 3 4 5 6 7 8 9
8 a b c d e f g h i
9 i r h n h h t s t
print (is.data.frame(data))
[1] TRUE
print(nrow(data))
[1] 9
print(ncol(data))
[1] 9
by gocha’s learning space
linux foundation