100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary Data Mining introduction into R + solutions exercices (introduction)

Rating
-
Sold
-
Pages
17
Uploaded on
31-07-2023
Written in
2022/2023

This document contains a brief summary of all codes covered in the introduction. In addition, this document contains the solutions to the exercises in this “introchapter”.

Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Connected book

Written for

Institution
Study
Course

Document information

Summarized whole book?
No
Which chapters are summarized?
Introduction to r + solutions exercises
Uploaded on
July 31, 2023
Number of pages
17
Written in
2022/2023
Type
Summary

Subjects

Content preview

RStudio: functions and definitions
Introduction in R
<-: assign values to variables

print(a): shows us the value stored in a

ls (): you can see all the variables saved in your workspace

rm (): you can delete any variable that you don’t want

rm (list=ls ()): remove all objects at once

#: commenting your code

install. Packages (): are installed in R not RStudio.

installed. Packages (): to see which packages you already have installed.

library (): loading a package.

data (): you can see all the available datasets.

seq (): creates a vector of numbers

seq (1, 10) or 1:10 1 defines start, 10 defines end

seq (1, 10, 2) 1 defines start, 10 defines end, 2 how much to jump by

1 3 5 7 9

seq (1, 15, length = 5) sequences of 5 numbers equally spaced between 1 and 15

1.0 4.5 8.0 11.5 15.0

sum (): adds numbers up

c (): concatenate: it will join the numbers 1,3,2,5 and save them as a vector named x

when type x, it gives us back the vector

> x <- c (1, 3, 2, 5)

>x

[1] 1 3 2 5

abs (): absolute value

class (): helps determine what type of object we have (vb. numeric, character, data. frame…)

str (): finding out more about the structure of an object

head (): the first n rows present in the input data frame

$: accessor: to access different variables represented by columns included in this data frame

Record$student_id or record [[“student_id”]]

Murders$population
$4.19
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
Worstje2021
5.0
(1)

Also available in package deal

Get to know the seller

Seller avatar
Worstje2021 Universiteit Gent
Follow You need to be logged in order to follow users or courses
Sold
7
Member since
2 year
Number of followers
5
Documents
13
Last sold
1 year ago

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions