sna_eg_stanford:lab01
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sna_eg_stanford:lab01 [2019/12/10 23:45] – [no pdf] hkimscil | sna_eg_stanford:lab01 [2022/11/28 13:26] (current) – hkimscil | ||
|---|---|---|---|
| Line 82: | Line 82: | ||
| # directly by referencing the URL in the read.table() function, | # directly by referencing the URL in the read.table() function, | ||
| # as follows: | # as follows: | ||
| - | advice_data_frame <- read.table(' | + | # advice_data_frame <- read.table(' |
| - | friendship_data_frame <- read.table(' | + | # friendship_data_frame <- read.table(' |
| - | reports_to_data_frame <- read.table(' | + | # reports_to_data_frame <- read.table(' |
| - | + | ||
| + | advice_data_frame <- read.table(' | ||
| + | friendship_data_frame <- read.table(' | ||
| + | reports_to_data_frame <- read.table(' | ||
| + | |||
| + | |||
| + | |||
| # If the files you want to work with are on your local machine, | # If the files you want to work with are on your local machine, | ||
| # the easiest way to access them is to first set your working | # the easiest way to access them is to first set your working | ||
| Line 114: | Line 121: | ||
| # header=T, which tells R that the first row of data contains | # header=T, which tells R that the first row of data contains | ||
| # column names. | # column names. | ||
| - | attributes <- read.csv(' | + | # attributes <- read.csv(' |
| + | attributes <- read.csv(' | ||
| attributes | attributes | ||
| - | + | ||
| # Other commands may be used to load data from files in different | # Other commands may be used to load data from files in different | ||
| # formats. read.delim() is a general function for loading any | # formats. read.delim() is a general function for loading any | ||
sna_eg_stanford/lab01.1576021519.txt.gz · Last modified: by hkimscil
