Displaying 2 results from an estimated 2 matches for "ww_08a_03".
Did you mean:
ww_08a_02
2011 Dec 28
2
convert variable types when creating data frame from cor.test results
...ers,
Keith
## Create sample dataset
WW_Wing_SI <-
structure(list(Individual_ID = c("WW_08A_02", "WW_08A_02", "WW_08A_02",
"WW_08A_02", "WW_08A_02", "WW_08A_02", "WW_08A_02", "WW_08A_02",
"WW_08A_02", "WW_08A_03", "WW_08A_03", "WW_08A_03", "WW_08A_03",
"WW_08A_03", "WW_08A_03", "WW_08A_03", "WW_08A_03", "WW_08A_03"
), FeatherPosition = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4,
5, 6, 7, 8, 9), Delta13C = c(-18.67, -19.16, -2...
2011 Dec 27
2
How to create a loop and then extract values from the list generated by cor.test
...g). In
addition, I would like to generate a new data frame that has the each
individual's 'Individual_ID', the pearson correlation 'estimate', and
the 'p.valve'.
The output table would look something like:
Individual_ID, estimate, p.value
WW_08A_02, -0.7670675, 0.01586
WW_08A_03, -0.02320767, 0.9527
Code with sample data:
## Create sample dataset
WW_Wing_SI <-
structure(list(Individual_ID = c("WW_08A_02", "WW_08A_02", "WW_08A_02",
"WW_08A_02", "WW_08A_02", "WW_08A_02", "WW_08A_02", "WW_08A_02&q...