setwd("F:/Documents/Work/Courses/Stats_LUND_2012_October/Exercises/Ex_02")# 1.gud56 ## twig yr pid gud ## O37 : 4 Min. :93.0 ROG BOG: 32 Min. : 0.00 ## O38 : 4 1st Qu.:93.0 RGR BYL: 15 1st Qu.: 0.29 ## O50 : 4 Median :95.0 YRY BMY: 13 Typical : 0.88 ## O54 : 4 Mean :94.5 RLB BOO: 13 Typical : 1.51 ## O1 : 3 3rd Qu.:96.0 ROV RLL: 13 3rd Qu.: 2.08 ## O2 : 3 Max. :96.0 YGB BGG: 13 Max. :11.71 ## (Other):201 (Other) :124names(gud)## <1> "twig" "yr" "pid" "gud"# Make a new dataframe called aveGUD containing the identity of the pairs,# and also the average values of gud for each pair (averaged throughout years).aveGUD ## Warning: discussion is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: argument is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: argument is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: argument is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: argument is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: argument is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: argument is not numeric or logical: returning NA## Warning: argument is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: argument is not numeric or logical: returning NA## Warning: argument is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: argument is not numeric or logical: returning NA## Warning: argument is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: argument is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA# To examine the warnings from over.


You are watching: Argument is not numeric or logical: returning na


See more: How To Be Happy (Or At Least Less Sad): A Creative Workbook By Lee Crutchley

(currently suppressed) warnings()# 5. obtain errors over from trying to calculate mean for non numeric data.# Rerelocate the non-numeric twig dataaveGUD$twig ## Warning: dispute is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: argument is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: debate is not numeric or logical: returning NA## Warning: discussion is not numeric or logical: returning NA## Warning: argument is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA## Warning: dispute is not numeric or logical: returning NA# Reasauthorize the pair ID worth to the pid column.aveFLE$pid ## <1> "pid" "yr.x" "fledge" "yr.y" "gud"# Plot n fledglings versus average offering up densityplot(unified.data$fledge ~ linked.data$gud, xlab = "Giving up density", ylab = "Fledglings, number")# execute a straight regression for this modellm.01

*