![]() Also, R does have a print() function for printing with more options, but R beginners rarely seem to use it. There are better ways of examining a data set, which I'll get into later in this series. You'll get a printout of the entire data set if you type the name of the data set into the console, like so: (I'm not sure from what year the data are from, but given that there are entries for the Valiant and Duster 360, I'm guessing they're not very recent still, it's a bit more compelling than whether beavers have fevers.) One of the less esoteric data sets is mtcars, data about various automobile models that come from Motor Trends. And some online tutorials use these sample sets. ![]() Not all of them are useful (body temperature series of two beavers?), but these do give you a chance to try analysis and plotting commands. Into the R console and you'll get a listing of pre-loaded data sets. If you just want to play with some test data to see how they load and what basic functions you can run, the default installation of R comes with several data sets. Here are several ways to get data into R for further work. ![]() But for any kind of serious work, you're a lot more likely to already have data in a file somewhere, either locally or on the Web. Yes, you can type your data directly into R's interactive console. Once you've installed and configured R to your liking, it's time to start using it to work with data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |