Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 206305

How do I convert the results of survey::syvratio into a dataframe?

$
0
0

I have calculated ratios for a few variables using svyratio, but it doesn't let me convert the return value into a dataframe. Using DF1 <- as.data.table(loc_ratio), it gives the error

"Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFactors) : cannot coerce class ‘"svyratio"’ to a data.frame"


Viewing all articles
Browse latest Browse all 206305

Trending Articles