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"