Tôi muốn chụp đầu ra từ chức năng data
trong đó bạn cung cấp tên gói và chức năng tạo ra đầu ra tĩnh. Tôi muốn biến điều này thành một khung dữ liệu.Đầu ra chụp dữ liệu
Hiện nay những điều sau đây sẽ cho sản lượng tĩnh:
data(package = "ggplot2")
Tôi muốn nó được như một dataframe và thực sự không bao giờ có kết quả tĩnh bên ngoài sản xuất.
diamonds Prices of 50,000 round cut diamonds
economics US economic time series.
midwest Midwest demographics.
movies Movie information and user ratings from IMDB.com.
mpg Fuel economy data from 1999 and 2008 for 38 popular models of car
msleep An updated and expanded version of the mammals sleep dataset.
presidential Terms of 10 presidents from Eisenhower to Bush W.
seals Vector field of seal movements.
Something như 'as.data.frame (dữ liệu() [[3 ]] [, 3: 4]) '? –
gần như nhưng điều này sẽ là cho một gói cụ thể. –
Bạn cũng có thể thích trang này liệt kê các tập dữ liệu R từ một loạt các pakcages: http://vincentarelbundock.github.com/Rdatasets/ – daroczig