convert_grid | R Documentation |
Convert continuous coordinate into integer, essential for BayesSpace to determine the neighborhood info
convert_grid(x)
x |
A numeric vector of continuous coordinate |
Returns a numeric vector oof integer coordinate
## Create a simSRT object
toySRT <- createSRT(count_in=toyData$toyCount,loc_in = toyData$toyInfo)
set.seed(1)
## Create New Locations within Profile
toySRT2 <- srtsim_newlocs(toySRT,new_loc_num=1000)
## Convert non-integer x-coordinates into an integer value
newGrid_x <- convert_grid(simcolData(toySRT2)$x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.