Displaying 2 results from an estimated 2 matches for "ww_08a_02".
Did you mean:
ww_08a_03
2011 Dec 28
2
convert variable types when creating data frame from cor.test results
...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", "WW_08A_03", "WW_08A_03",
"WW_08A_03&...
2011 Dec 27
2
How to create a loop and then extract values from the list generated by cor.test
...he process (a loop I am guessing). 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_...