I am not sure what is happening, but there seems to be a conflict introduced into showing just part of a data.frame when using qgraph
library(psych)
library(psychTools)
test <- describe(sat.act)
> test[,2:4]#this works
n mean sd
gender 700 1.65 0.48
education 700 3.16 1.43
age 700 25.59 9.50
ACT 700 28.55 4.82
SATV 700 612.23 112.90
SATQ 687 610.22 115.64
> library(qgraph)
library(qgraph)
> test[,2:4] #but this does not
NA Variables 13 Observations
-----------------------------------------------------------------------------------------------------------------------------------------------------
Error in x$descript : $ operator is invalid for atomic vectors
class(test)
[1] "psych" "describe" "data.frame"
test
vars n mean sd median trimmed mad min max range skew kurtosis se
gender 1 700 1.65 0.48 2 1.68 0.00 1 2 1 -0.61 -1.62 0.02
education 2 700 3.16 1.43 3 3.31 1.48 0 5 5 -0.68 -0.07 0.05
age 3 700 25.59 9.50 22 23.86 5.93 13 65 52 1.64 2.42 0.36
ACT 4 700 28.55 4.82 29 28.84 4.45 3 36 33 -0.66 0.53 0.18
SATV 5 700 612.23 112.90 620 619.45 118.61 200 800 600 -0.64 0.33 4.27
SATQ 6 687 610.22 115.64 620 617.25 118.61 200 800 600 -0.59 -0.02 4.41
but
test[,2:4]
NA Variables 13 Observations
I am not sure what is happening, but there seems to be a conflict introduced into showing just part of a data.frame when using qgraph
library(psych)
but