![]() ![]() To calculate statistics for the variables CITYMPG, HWYMPG and ENGINESIZE only, you can create a new object called vars that contain those variable names, then use the following code. That will be handled in a later tutorial.) (Note that there is a missing value in the CYLINDERS field (-1). Produces the following output (of all variables in the data set): The following code creates an object named cars, then uses the summary function to produce summary statistics. Make changes to the R program if you save the file to a different folder.) See also Import Data into R from Excel The program assumes the data file is in the folder C:\RDATA. (This tutorial uses the raw data file CARSMPG.CSV. Performing a statistical test to assess normalityĭescriptive Statistics in R Part 1 Calculating mean, standard deviation and other descriptive statistics.Creating a graph (histogram) of the data to visually examine its distribution. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |