Displaying 2 results from an estimated 2 matches for "ww_wing_si".
2011 Dec 27
2
How to create a loop and then extract values from the list generated by cor.test
...vidual'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",
"WW_08A_02", "WW_08A_03", "WW_08A_03", "W...
2011 Dec 28
2
convert variable types when creating data frame from cor.test results
...it is
passed into the new dataframe? For example, 'estimate', 'p.value', and
'conf.int' should be numeric not character. Second, I would like
variable 'conf.int' to be two variables, 'lowlim' and 'uplim'.
Many Cheers,
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", "W...