# NOT RUN {
longdata <- data.frame(
SampleID = paste0("Sample", c(1, 1, 1, 2, 2, 3, 3)),
FeatureID = paste0("Feature", c(1, 2, 3, 1, 2, 2, 3)),
Value = c(132, 41, 7, 56, 11, 929, 83))
longdata
pivot_to_numeric_matrix(longdata, SampleID, FeatureID, Value)
# }
Run the code above in your browser using DataLab