search for: ogsdata

Displaying 2 results from an estimated 2 matches for "ogsdata".

Did you mean: oggdata
2007 Nov 26
2
Filling in a Zero Matrix
...be some problem with this section of my code. I have highlighted the dodgy code in red. Please help if possible. ###################################################### ########### Create matrix ########################### ###################################################### #Open the csv file OGSdata <- read.table("MG3199.csv",sep=",",header=TRUE) #creates 3 separate vectors sample <- OGSdata[,1] mci <- OGSdata[,2] pct <- OGSdata[,3] #change mci range offset <- min(mci)-1 mci <- (mci - offset) #matrix sizes mci_count <- max(mci) sample_count <- ma...
2007 Nov 29
0
Doing PCA
...inite or missing values in 'x' CODE ###################################################### ########### Create matrix ########################### ###################################################### # load packages require(reshape) source("rangescale.r") #Open the csv file OGSdata <- read.table("MG3199.csv",sep=",",header=TRUE) #create matrix x.m <- melt(OGSdata, measure.var="pct") OGS <- cast(x.m, mci ~ sample) ###################################################### ########### PCA #################################### ############...