Run edit(newsome1) as required in Section 3.4, and comment on how this function is different from the

Question:

Run edit(newsome1) as required in Section 3.4, and comment on how this function is different from the View function.


Data from in Section 3.4

R objects are of varying nature and we may be interested in having a quick look at the dataset itself, and not through sophisticated tools such as graphics or statistical summaries. The utils package shipped along with R contains a host of functionalities for our purpose.

Suppose we want to see the first ten observations of the 100mrun.xls dataset that we imported earlier. Or we may like to see the last five observations of the same dataset. In R, head and tail are the two functions which give us this facility:

Another compact way of visualizing an object is to horizontally display the dataset. This is provided by the str function.

The fix function is used to display the dataset in a new window, whereas the View function is used to just view the dataset.

> fix(newsome1)
> View(newsome1)
> View(wine)

Check what exactly the edit function does to an R object.
Note that the window arising due to the fix function contains three tabs Copy, Paste and Quit, which may be used to change the dataset. The reader may find the edit function to be useful too. For more such interesting functions, run library(help=utils) at the R console and experiment.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

A Course In Statistics With R

ISBN: 9781119152729

1st Edition

Authors: Prabhanjan N. Tattar, Suresh Ramaiah, B. G. Manjunath

Question Posted: