Szybko przeglądaj tabelę danych R, wektor lub tabelę danych w programie Excel

Jak szybko otwierać małe obiekty R / wektor w programie Excel?

Załóżmy na przykład, że masz trzy następujące obiekty, które chcesz wyświetlić w programie Excel:

## A data frame with commas and quotes
df = data.frame(
  area = unname(state.x77[,'Area']),
  frost = unname(state.x77[,'Frost']),
  comments = "Ok for a visit, but don't want to live there",
  challengeComments = c('"', '""'))
row.names(df) = state.name
df = df[1:10, ]
df['California', 'comments'] = "Would like to live here"

## A Matrix
mat = matrix(rnorm(100), 10)

## A Vector
v = 1:10

questionAnswers(7)

yourAnswerToTheQuestion