Description Usage Arguments Details Value Author(s) See Also Examples

This function takes data imported into R and checks the format to ensure compatability with following analyses. It also adds the row names to the matrices if provided.

1 |

`x` |
A list of either 2 or 3 matrices. For correct statistical testing downstream, the first matrix should be made up of kinship network data. The second and third matrix can be a microbial dissimilarity matrix and/or behavioral statistic matrix in either or order, and only one is required. This maintains kinship as the independent variable in downstream analyses. |

`s.names` |
A vector of strings that matches the column headers of the imported matrices. The order is important, as this vector will be used to add row names to the matrices once they are confirmed to be of the correct dimensions. If your matrices already have the correct row names, the default value of NULL can be kept to skip this process. |

For further use in the package, the output is stored as a list, which will contain the 2 or 3 correctly formatted matrices. These will be used by the Analysis function to apply the Mantel and Partial Mantel tests.

Verify returns a list with three matrices, to be used in later analyses.

Karthik Yarlagadda

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | ```
a <- matrix(c(0,0.0106,0.384,0.0106,0,0.002,0.384,0.002,0), nrow=3, ncol=3, byrow = TRUE)
colnames(a) <- c("Sample1","Sample2","Sample3")
b <- matrix(c(0,0.014,0.0352,0.014,0,0.0235,0.0352,0.0235,0), nrow=3, ncol=3, byrow = TRUE)
colnames(b) <- c("Sample1","Sample2","Sample3")
example.list <- list(a,b)
sample.names <- c("Sample1","Sample2","Sample3")
Example.data <- Verify(example.list,sample.names)
Example.data
a <- matrix(c(0,0.0106,0.384,0.0106,0,0.002,0.384,0.002,0), nrow=3, ncol=3, byrow = TRUE)
colnames(a) <- c("Sample1","Sample2","Sample3")
b <- matrix(c(0,0.014,0.0352,0.014,0,0.0235,0.0352,0.0235,0), nrow=3, ncol=3, byrow = TRUE)
colnames(b) <- c("Sample1","Sample2","Sample3")
c <- matrix(c(0,0.04,0.02,0.04,0,0.01,0.02,0.01,0), nrow=3, ncol=3, byrow = TRUE)
colnames(c) <- c("Sample1","Sample2","Sample3")
example.list <- list(a,b,c)
sample.names <- c("Sample1","Sample2","Sample3")
Example.data <- Verify(example.list,sample.names)
Example.data
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.