The place you MUST upload these two files is to the “Learning Activity 2: grade” container. LAU4-By-John-Smith.pdf (+ if possible the result of knitting your scripts in Rmarkdown document that includes the outcomes).LAU4-By-John-Smith.Rmd ( + if possible R Markdown document).LAU4-By-John-Smith.R ( the necessary Script).The file name should have this format: ActivityU4-firstnamelastname. For example, the file names will be: Then Knit it to a pdf and upload three files to the Learning Activity Grade container.) (OPTIONAL: If possible, for your working environment, then make an Rmarkdown document from your scripts with comments about what you have learned. For example:Īdd comments to your “.R” script such that the reader would understand what you are intending by each command. When you use one of the functions from a library, specify the library you are using by ”::“ notation. Practice with R scripts discussed in those resources using the installed Rstudio on your computer.Ĭall the libraries you use within every one of your scripts (even if you have called it in your command line) because your professor should be able to run your script on his/her computer. So for example 5 is a number, as is 6, but so are 5.01, 5.001, 5.0001 etc. Numerics (with as.numeric) are numbers, with infinite other numbers between them. For example North South East and West could be factors. While you are watching the videos, and while you are reading the required texts, (Book chapter and articles) in “Unit 2: Activities” experiment with scripts and exercises in the Book chapter and the content and/or similar scripts. In other areas of science outside R they're often called categorical values. You are encouraged to help each other in understanding Unit Activities and practicing with scripts and answering the questions in the discussion forum. What is the practical benefit of a list that stores a string, a numeric vector, and a matrix? Give real life examples. Lists are the most complex of the R data types.Why would you use a data frame over a vector to store your data?.What is unique about a numeric variable?. Both numeric and character variables can be made. For instance, you could transform a character object or a integer numeric value to a raw object with the charToRaw and intToBits functions, respectively. The only required argument to factor is a vector of values which will be returned as a vector of factor values. The raw data type holds raw bytes, so it is a very unusual data type. The f actor function is used to create a factor. What is a factor variable? When would you want to use a factor variable? Factors in R are stored as a vector of integer values with a corresponding set of character values to use when the factor is displayed.Learn the required content of this unit, and conduct your research to answer the following questions in the discussion forum: is.numeric is a more general test of an object being interpretable as numbers. Download and install R and RStudio and perform initial setup and navigation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |