gjwgit / rattleng

The New Generation R Analytics Desktop App
GNU General Public License v3.0
20 stars 8 forks source link

COMP3430 DW: Lab 1 Explore - Summary + Describe + Skewness + Show Missing #69

Closed gjwgit closed 3 months ago

gjwgit commented 12 months ago

See https://datamining.togaware.com/survivor/Exploring_Data.html

Description

COMP3430 DW Lab 1 loads a sample dataset and asks students to explore the dataset: summary, describe, skewness, missing.

Closing Citeria

A collection of R scripts:

Test Case

Data Wrangling Lab 1 Required for Week 3 but must be there end of June

Details

Image

gjwgit commented 5 months ago

Explore -> Summary -> Summary + Describe + Show Missing

Image

#=======================================================================
# Rattle timestamp: 2024-05-31 16:36:48.039319 x86_64-pc-linux-gnu 

# The 'Hmisc' package provides the 'contents' function.

library(Hmisc, quietly=TRUE)

# Obtain a summary of the dataset.

contents(crs$dataset[crs$train, c(crs$input, crs$risk, crs$target)])
summary(crs$dataset[crs$train, c(crs$input, crs$risk, crs$target)])

# The 'Hmisc' package provides the 'describe' function.

library(Hmisc, quietly=TRUE)

# Generate a description of the dataset.

describe(crs$dataset[crs$train, c(crs$input, crs$risk, crs$target)])

# The 'mice' package provides the 'md.pattern' function.

library(mice, quietly=TRUE)

# Generate a summary of the missing values in the dataset.

md.pattern(crs$dataset[,c(crs$input, crs$target)])

Image

Image

gjwgit commented 3 months ago

Image