Displaying 3 results from an estimated 3 matches for "new_data_frame".
2006 Nov 30
0
new_data_frame <- selected set of rows
Hello,
this is probably trivial but I failed to find this particular snippet of code.
What I got:
my_dataframe (contains say a 40k rows and 4 columns)
distances (vector with euclidean distances between a query vector and each of the rows of my_dataframe)
What I do:
after scaling data my_dataframe I calculate distances. order them then extract top five hits
my_dataframe <-
2006 Nov 30
3
newbie: new_data_frame <- selected set of rows
Hello,
this is probably trivial but I failed to find this
particular snippet of code.
What I got:
my_dataframe (contains say a 40k rows and 4 columns)
distances (vector with euclidean distances between a
query vector and each of the rows of my_dataframe)
What I do:
after scaling data my_dataframe I calculate distances.
order them then extract top five hits
my_dataframe <-
2011 Dec 10
3
PCA on high dimentional data
...on names (cond1, cond2, cond3,
etc).
mydata<- read.table(file="c:/file1.mtx", header=TRUE, sep="")
I applied PCA as follows:
data_after_pca<- prcomp(mydata, retx=TRUE, center=TRUE, scale.=TRUE);
Now i get 1000 PCs and i choose first three PCs and make a new data frame
new_data_frame<- cbind(data_after_pca$x[,1], data_after_pca$x[,2],
data_after_pca$x[,3]);
After the PCA, in the new_data_frame, i loose the previous cond1,
cond2, cond3 labels, and instead have PC1, PC2, PC3 as column names.
My question is, is there any way I can map the PC1, PC2, PC3 to the
original conditi...