"These data are recorded on a Tecator Infratec Food and Feed Analyzer working in the wavelength range 850 - 1050 nm by the Near Infrared Transmission (NIT) principle. Each sample contains finely chopped pure meat with different moisture, fat and protein contents.
Details
If results from these data are used in a publication we want you to mention the instrument and company name (Tecator) in the publication. In addition, please send a preprint of your article to
Karin Thente, Tecator AB, Box 70, S-263 21 Hoganas, Sweden
The data are available in the public domain with no responsibility from the original data source. The data can be redistributed as long as this permission note is attached."
"For each meat sample the data consists of a 100 channel spectrum of absorbances and the contents of moisture (water), fat and protein. The absorbance is -log10 of the transmittance measured by the spectrometer. The three contents, measured in percent, are determined by analytic chemistry."
Included here are the meats data transformed to a long format with
::meats |>
modeldatarowid_to_column(var = "id") |>
pivot_longer(cols = starts_with("x_"),
names_to = "channel",
values_to = "transmittance") |>
mutate(channel = str_extract(channel, "[:digit:]+") |> as.integer())
Examples
data(meats_long)
str(meats_long)
#> tibble [21,500 × 6] (S3: tbl_df/tbl/data.frame)
#> $ id : int [1:21500] 1 1 1 1 1 1 1 1 1 1 ...
#> $ water : num [1:21500] 60.5 60.5 60.5 60.5 60.5 60.5 60.5 60.5 60.5 60.5 ...
#> $ fat : num [1:21500] 22.5 22.5 22.5 22.5 22.5 22.5 22.5 22.5 22.5 22.5 ...
#> $ protein : num [1:21500] 16.7 16.7 16.7 16.7 16.7 16.7 16.7 16.7 16.7 16.7 ...
#> $ channel : int [1:21500] 1 2 3 4 5 6 7 8 9 10 ...
#> $ transmittance: num [1:21500] 2.62 2.62 2.62 2.62 2.62 ...