to.rds | R Documentation |
sample.RDS
object to an rds.data.frame
object.This function transforms an output from the sample.RDS
function of the
RDStreeboot package to an rds.data.frame
object of the
RDS package.
to.rds(RDS.data)
RDS.data |
A list containing the following objects:
|
An rds.data.frame
object.
Mamadou Yauck <yauck.mamadou@uqam.ca> and Erica E. M. Moodie.
#Load the synthetic population network dataset. data("pop.network") #Draw an RDS sample from the simulated network using the sampleRDS function #from the package RDStreeboot. require(RDStreeboot) RDS.samp <- sample.RDS(pop.network$traits, pop.network$adj.mat, 200, 10, 3, c(1/6,1/3,1/3,1/6), FALSE) #Tranform RDS.samp to an rds.data.frame object require(RDS) to.rds(RDS.data=RDS.samp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.