View() in RStudio works but View() in R x64 doesn't?
up vote
0
down vote
favorite
Let this be the arbitrary code:
x <- rnorm(100)
y <- runif(100)
fit <- lm(y~x)
Using View(fit) in RStudio gives a list of variables. While View(fit) in the original R x64 console, v3.5.1, returns the error:
"Error in as.data.frame.default(x) : cannot coerce class ‘"lm"’ to a data.frame"
What is causing this?
r listview
add a comment |
up vote
0
down vote
favorite
Let this be the arbitrary code:
x <- rnorm(100)
y <- runif(100)
fit <- lm(y~x)
Using View(fit) in RStudio gives a list of variables. While View(fit) in the original R x64 console, v3.5.1, returns the error:
"Error in as.data.frame.default(x) : cannot coerce class ‘"lm"’ to a data.frame"
What is causing this?
r listview
2
Per the documentation,View()
"[invokes] a spreadsheet-style data viewer on a matrix-like R object.".lm()
does not return a matrix style object, however, RStudio extends the functionality to show you additional object properties.
– Mako212
Nov 12 at 17:20
RStudio is essentially showing you a combination ofstr(fit)
andsummary(fit)
– Mako212
Nov 12 at 17:22
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Let this be the arbitrary code:
x <- rnorm(100)
y <- runif(100)
fit <- lm(y~x)
Using View(fit) in RStudio gives a list of variables. While View(fit) in the original R x64 console, v3.5.1, returns the error:
"Error in as.data.frame.default(x) : cannot coerce class ‘"lm"’ to a data.frame"
What is causing this?
r listview
Let this be the arbitrary code:
x <- rnorm(100)
y <- runif(100)
fit <- lm(y~x)
Using View(fit) in RStudio gives a list of variables. While View(fit) in the original R x64 console, v3.5.1, returns the error:
"Error in as.data.frame.default(x) : cannot coerce class ‘"lm"’ to a data.frame"
What is causing this?
r listview
r listview
asked Nov 12 at 16:55
Linsu Han
83
83
2
Per the documentation,View()
"[invokes] a spreadsheet-style data viewer on a matrix-like R object.".lm()
does not return a matrix style object, however, RStudio extends the functionality to show you additional object properties.
– Mako212
Nov 12 at 17:20
RStudio is essentially showing you a combination ofstr(fit)
andsummary(fit)
– Mako212
Nov 12 at 17:22
add a comment |
2
Per the documentation,View()
"[invokes] a spreadsheet-style data viewer on a matrix-like R object.".lm()
does not return a matrix style object, however, RStudio extends the functionality to show you additional object properties.
– Mako212
Nov 12 at 17:20
RStudio is essentially showing you a combination ofstr(fit)
andsummary(fit)
– Mako212
Nov 12 at 17:22
2
2
Per the documentation,
View()
"[invokes] a spreadsheet-style data viewer on a matrix-like R object.". lm()
does not return a matrix style object, however, RStudio extends the functionality to show you additional object properties.– Mako212
Nov 12 at 17:20
Per the documentation,
View()
"[invokes] a spreadsheet-style data viewer on a matrix-like R object.". lm()
does not return a matrix style object, however, RStudio extends the functionality to show you additional object properties.– Mako212
Nov 12 at 17:20
RStudio is essentially showing you a combination of
str(fit)
and summary(fit)
– Mako212
Nov 12 at 17:22
RStudio is essentially showing you a combination of
str(fit)
and summary(fit)
– Mako212
Nov 12 at 17:22
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
I think the viewer panel in RStudio is a bit more advanced than the little program that is launched from the regular R console. You could always try the listviewer
package if you can't access RStudio but need this functionality.
library(listviewer)
x <- rnorm(100)
y <- runif(100)
fit <- lm(y~x)
jsonedit(fit)
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I think the viewer panel in RStudio is a bit more advanced than the little program that is launched from the regular R console. You could always try the listviewer
package if you can't access RStudio but need this functionality.
library(listviewer)
x <- rnorm(100)
y <- runif(100)
fit <- lm(y~x)
jsonedit(fit)
add a comment |
up vote
0
down vote
I think the viewer panel in RStudio is a bit more advanced than the little program that is launched from the regular R console. You could always try the listviewer
package if you can't access RStudio but need this functionality.
library(listviewer)
x <- rnorm(100)
y <- runif(100)
fit <- lm(y~x)
jsonedit(fit)
add a comment |
up vote
0
down vote
up vote
0
down vote
I think the viewer panel in RStudio is a bit more advanced than the little program that is launched from the regular R console. You could always try the listviewer
package if you can't access RStudio but need this functionality.
library(listviewer)
x <- rnorm(100)
y <- runif(100)
fit <- lm(y~x)
jsonedit(fit)
I think the viewer panel in RStudio is a bit more advanced than the little program that is launched from the regular R console. You could always try the listviewer
package if you can't access RStudio but need this functionality.
library(listviewer)
x <- rnorm(100)
y <- runif(100)
fit <- lm(y~x)
jsonedit(fit)
answered Nov 12 at 17:25
forestfanjoe
327210
327210
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53266753%2fview-in-rstudio-works-but-view-in-r-x64-doesnt%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Per the documentation,
View()
"[invokes] a spreadsheet-style data viewer on a matrix-like R object.".lm()
does not return a matrix style object, however, RStudio extends the functionality to show you additional object properties.– Mako212
Nov 12 at 17:20
RStudio is essentially showing you a combination of
str(fit)
andsummary(fit)
– Mako212
Nov 12 at 17:22