Enter Own Data

I created a CSV file with information about members of my family, saved it in the same folder as my Notebook file, loaded the data file into the famex object in the Notebook (with read.csv()), and showed the complete file in the code below.

> famex <- read.csv("Family_Example.csv")
> famex
     name age relation
1    Will  87     Pops
2 Carolyn  82       Ma
3    Lisa  63   Sister
4     Pam  60   Sister
5  Brooke  50   Sister


Load Data from Webpage

I downloaded the fire.csv file into the same folders as my Notebook file, loaded the data into the firedf object in the Notebook (with read.csv()), and showed the stucture of the file with str() (because showing the whole file was too big). From the structure one can see that there are 48 individuals (R calls them observations which it abbreviates with “obs.”), 6 variables, and the variables are named sttype, tslf, tdw, litdep, fuel1h, and tltd.

> firedf <- read.csv("Fire.csv")
> str(firedf)
'data.frame':   48 obs. of  6 variables:
 $ sttype: chr  "d" "d" "d" "d" ...
 $ tslf  : chr  "0-100" "0-100" "0-100" "0-100" ...
 $ tdw   : num  27.7 22.6 26.2 43.6 27 41.2 46.6 27.6 89.2 39.6 ...
 $ litdep: num  0.62 1.33 1.46 1.92 2.9 2.13 2.33 1.46 2.25 3.08 ...
 $ fuel1h: num  0.06 0.07 0.08 0.05 0.06 0.15 0.02 0.04 0.04 0.3 ...
 $ tltd  : int  2382 1978 1234 1478 1901 1111 748 1055 3422 1045 ...