Question
1 R R . .csv . . fwf R 2 UCI http://archive.ics.uci.edu/ml/machine-learning-databases/abalone/abalone.data http://archive.ics.uci.edu/ml/machine-learning-databases/abalone/abalone.names Rstudio .. 2.1 R url table url
1
R R
- .
- .csv
- .
- . fwf
- R ""
2
UCI
http://archive.ics.uci.edu/ml/machine-learning-databases/abalone/abalone.data
http://archive.ics.uci.edu/ml/machine-learning-databases/abalone/abalone.names
Rstudio ..
2.1
R url table
url <- "http://archive.ics.uci.edu/ml/machine-learning-databases/abalone/abalone.data" abalone <- read.table(url, sep = ",")
Web
# (Do NOT include this code in your Rmd file!!!) # download copy origin <- 'http://archive.ics.uci.edu/ml/machine-learning-databases/abalone/abalone.data' destination <- 'abalone.data' download.file(origin, destination)
# reading data from your working directory abalone <- read.table("abalone.data", sep = ",")
/
# take a peek of first rows head(abalone) # take a peek of last rows tail(abalone)
R str
# check data frame's structure str(abalone, vec.len = 1)
2.2
R R
2.3
- column_names"7""
# your code
- column_types R . R "7"" = = =
# your code
- ""
# your code
- table R .column_namescolumn_types str
# your code
- . .csv 2 str
# your code
- table 10 10 str
# your code
- table 10 10 11-2020 str
# your code
- table aba4 str
# your code
- aba3 str
# your code
Length Diam Height Whole Shucked Viscera Shell Rings Min 0.075 0.055 0.000 0.002 0.001 0.001 0.002 1 Max 0.815 0.650 1.130 2.826 1.488 0.760 1.005 29 Mean 0.524 0.408 0.140 0.829 0.359 0.181 0.239 9.934
- $
length diam height whole shucked viscera shell rings Min 0.075 0.055 0.000 0.002 0.001 0.001 0.002 1 Max 0.815 0.650 1.130 2.826 1.488 0.760 1.005 29 Mean 0.524 0.408 0.140 0.829 0.359 0.181 0.239 9.934 SD 0.120 0.099 0.042 0.490 0.222 0.110 0.139 3.224 # your code
- $
# your code
- $
# your code
3 "dplyr"
%>%"dplyr"
"dplyr"
""
"dplyr"""%>%
x %>% f y f x y
3.1
"dplyr""%>%"
- 5
# your code
- 5
# your code
- male_female
# your code
- 125
# your code
- 236
# your code
# your code
4
"dplyr"
UCI
http://archive.ics.uci.edu/ml/datasets/Pittsburgh+Bridges
http://archive.ics.uci.edu/ml/machine-learning-databases/bridges/bridges.names
http://archive.ics.uci.edu/ml/machine-learning-databases/bridges/bridges.data.version1
4.1
- .".data.version1"
4.2
# your code
# your code
# your code
4.3
"dplyr"
# your code
# your code
# your code
# your code
# your code
# your code
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started