# Create mock spectral data
library(openxlsx)
cleaned_data <- data.frame(
treatment = sample(0:1, 100, replace = TRUE),
var1 = rnorm(100),
var2 = rnorm(100),
var3 = rnorm(100),
Scan.date = sample(
seq.Date(
from = as.Date('2023-01-01'),
to = as.Date('2023-12-31'),
by = 'day'
),
100
),
Scan.time = format(Sys.time(), "%H:%M:%S")
)
Run the code above in your browser using DataLab