Greeting folks!
I am new to R and I want to study some data from a .csv file. I was told to make a scatter plot of two variables x against y to see their relationship.
I was wondering what is the first thing to get everything set up? Do I have to create a new folder and set a working dictionary first?
And then what function should I use to import my .csv to my dataset?
Note that the .csv folder has more than two columns so how can I specifically choose the two that I wanted?
So much thanks!
Sorry for so many questions, please forgive me I am very new to this
I don't understand first question. may be directory, not dictionary.
basically document directory is used to working directory unless you explicitly set it.
so you can
work in document directory
or
make directory
and move files
then set working directory to work.
to read csv file, I usually use read.csv function
of course you can do this,
tab = read.csv('your.csv')
# header(tab) will helpful.
tab[,c(1,3)] # this will call first and third column of csv file.