Data 640 Activity 1

docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

640

Subject

Statistics

Date

Apr 3, 2024

Type

docx

Pages

11

Uploaded by JusticeBravery13171

Report
Katherine Tucker Data 640 Practical R Activity One Starting and Quitting R and RStudio Loading a Data Set To load data into R, click on the Data Tab, then go to Filename and find the path. Once loaded, execute code by clicking RUN (Note: only execute one line of code at a time).
Building a Model When the file is loaded with all the data set, variables, etc can be assigned to be used in the model. File being used should contain columns related to the variables in the model.
Understanding Data The data set being used should have descriptors within the file to explain each variable and what it represents. Evaluation a Model Interacting with RStudio When the library() with R it interacts with the dataset chosen head() and names() are others that you can use to interact with R as well.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Interacting with R
Frequently used Commands that you should know Read.cvs(filepath): to read data from input dataset view( ):view the input dataset head(,n=10): begin by printing the table’s first 10 rows tail(,n=10): print the table’s last 10 rows dim ():prints number or rows in the table
summary(): summary statistics Help(function): to understand any function log(): logarithm min_rank () : rank values cut (): cut a continuous variable into intervals with new interger value sifnifying into while original value falls scale():standardizes variable lag(),lead(): lag and lead a variable cumsum(): cumulative sum rowMeans(), rowSums() : means and sums of several columns plot(): scatter plot hist(): histograms boxplot(): box plots (box and whisker) barplot(): bar plots ggplot2 uses a structured grammar of graphics that provides an intuitive framework for building graphics layer by layer rather than memorizing lots of plotting commands and options. Graphics take less work to make beautiful and eye catching graphics. *italics* produces  italics **bold** produces  bold ~~strikethrough~~ produces  strikethrough `code` produces  code text^super^ produces text super text~sub~ produces text sub
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
References Group, I. S. C. (n.d.). Introduction to R. https://stats.oarc.ucla.edu/stat/data/intro_r/intro_r_interactive.html#(1)