교육통계/Rstudio(english)

Educational statistics Using R - 1. Descriptive statistics 1) loading data

개노답이글스 2022. 11. 9. 17:52

I'm trying to practice statistics method using Rstudio.

 

1. Resources for study

 

What I used resource is form here

 

https://www.nypi.re.kr/archive/eps

 

NYPI Youth and Children Data Archive

Advancement ofYouth Policy National Youth Policy Institute will lead the way

www.nypi.re.kr

 

2. Loading data in Rstudio

 

It's pretty simply

 

click 'Import Dataset'

 

 

there are some taps

 

From Test, Excel, Spss, SAS, Sata

 

If you have Excel data, Click "From Excel"

 

or Spss, SAS, Stata click proper dataform 

 

IF you have  CSV file,  click "From Text"

 

I used a sav(spss) file

 

 

Click "Browse" and load what you want 

 

 

it show what you load

 

also you can find some code 

 

if you like to use this code, copy and paste it

 

 

Then click "Import" button.

 

 

 

you will see like this in your environment

 

Add to..

 

How load Csv

 

Click Import dataset -> From text 

 

then

 

 

at this point, 

 

Heading is important

 

If you check in yes, 

 

First row is recognized as Head

 

else you don't,

 

First row is recognized as variable

 

 

To be continued...

 

Thank you