search for: data_point

Displaying 3 results from an estimated 3 matches for "data_point".

2008 Apr 30
3
missing values in document
...values. How do I tell R that these should be NA´s? > TRFLP1 <-(read.table(file="S://SEDIM//Kokeilu//TRFLP1.txt",col.names= c("Dye_Sample Peak", "Sample_File_Name", "Size", "Height", "Area_in_Point", "Area_in_BP", "Data_Point", "Begin_Point", "Begin_BP", "End_Point", "End_BP", "Width_in_Point", "Width_in_BP", "1" ), header=F , dec = ",", )Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 1743 did not h...
2008 May 07
1
i-best, grep function
...s, I can't get it to work with my data. Here is the code: T1 <- read.delim(file="S://SEDIM//Yvonne//2_5//T1.txt",col.names= c("Dye/Sample_Peak", "Sample_File_Name", "Size", "Height", "Area_in_Point", "Area_in_BP", "Data_Point", "Begin_Point", "Begin_BP", "End_Point", "End_BP", "Width_in_Point", "Width_in_BP", "User_Comments", "User_Edit")) T1 <- subset(T1, Size < 1000 & Size > 50) T1.B <- cbind(T1[grep("^B",...
2012 Mar 19
0
Reshape data frame with dcast and melt
...e can tell me whether the step from d1 -> reshape_wide -> d2 can work at all because of the non uniqueness of d1. library(reshape2) library(taRifx) reshape_long <- function(data, ids) { # Bring data into long form data_long <- melt(data, id.vars = ids, variable.name="Data_Points", value.name="value") data_long$value <- as.numeric(data_long$value) # Remove rows were analyte value is NA data_long <- data_long[!is.na(data_long$value), ] # Resort data formula_sort <- as.formula(paste("~", paste(ids, collapse="+")))...