Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Please see attached zip folder. Script has instructions.

1 answer below »
Please see attached zip folder. Script has instructions.
Answered 6 days After Oct 15, 2022

Solution

Radhika answered on Oct 22 2022
62 Votes
####################################################################
####################################################################
## temperature logger data
## notice all the 'buttonX.txt' files
## these are outputs from ibutton temperature loggers
## placed at different points within a forest,
## including within the soil, on the soil and on tree
anches
## have a look at the 'button1.txt' data file using a text editor such as notepad
## notice the two columns
## the first column shows a date-time stamp in the format day:hour:minute
## the second column shows the temperature recorded at that time
## read it in and have a look
## notice we have to use 'read.table' instead of 'read.csv' because it is a text file
tempdata <- read.table('button1.txt',header=TRUE)
head(tempdata)
## we could try plotting time against temp
plot(tempdata$time,tempdata$temp,t='l')
## it kind of works, but it looks a bit strange
## this is because time is a character string, not a numbe
## so it has been read in as a facto
tempdata$time
## we could just plot by index and get a fairly good plot
plot(tempdata$temp,t='l')
## and now the second button
tempdata2 <- read.table('button2.txt',header=TRUE)
head(tempdata2)
## we use lines instead of plot, so that we keep the first plot
lines(tempdata2$temp,t='l',col='red')
## looks easy, but notice the logger is starting from a different time,
## so the x-axis is not comparable
## we need to process the time stamp to make it numerically meaningful
## see if you can follow what each of these lines is doing - ask if in any...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here