Displaying 8 results from an estimated 8 matches similar to: "newbie: new_data_frame <- selected set of rows"
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 <-
2012 Apr 17
1
Summary about how to divide data by week
Thank you to Ozgur, who gave me the hints for an easy solution.
There are the commands that work for my case:
mean(my_dataframe$Freq[my_dataframe$month == 5 & my_dataframe$day %in% c(1:7)])
mean(my_dataframe$Freq[my_dataframe$month == 5 & my_dataframe$day %in% c(8:14)])
...
Stefano Sofia PhD
This is the original message:
Dear list users,
I have a data frame as below specified.
From
2011 Aug 08
3
Distance between a vector and matrix rows
I am trying to find the distance between a vector and each row of a
dataframe. I am using the function "distancevector" in the package "hopach"
as follows:
mydata<-as.data.frame(matrix(c(1,1,1,1,0,1,1,1,1,0),nrow=2))
V1 V2 V3 V4 V5
1 1 1 0 1 1
2 1 1 1 1 0
vec <- c(1,1,1,1,1)
d2<-distancevector(mydata,vec,d="euclid")
The Euclidean distance
2008 Aug 29
5
[LLVMdev] Dependence Analysis [was: Flow-Sensitive AA]
On Aug 21, 2008, at 1:37 AM, Wojciech Matyjewicz wrote:
> I am investigating what changes are necessary to add support for
> first-class structs and arrays and will prepare a version to check
> in as
> a LLVM project if there still is interest.
We want to model this as an analysis and make following changes.
- Rename LoopMemDepAnalysis as DataDependenceAnalysis. Various
2008 Aug 21
0
[LLVMdev] Dependence Analysis [was: Flow-Sensitive AA]
> Wojtek,
>
> Please see David's message below. Have you or can you check in your
> code, perhaps as a project for now? That will allow us to start
> looking at it and perhaps collaborating on it.
Sure. For now, I am posting it as an attachment, because it does not
build against the current SVN version. It is really basic (for example,
it cannot produce distance vectors,
2008 Aug 20
4
[LLVMdev] Dependence Analysis [was: Flow-Sensitive AA]
Wojtek,
Please see David's message below. Have you or can you check in your
code, perhaps as a project for now? That will allow us to start
looking at it and perhaps collaborating on it.
--Vikram
Associate Professor, Computer Science
University of Illinois at Urbana-Champaign
http://llvm.org/~vadve
On Aug 20, 2008, at 3:05 PM, David Greene wrote:
> On Wednesday 20 August 2008
2011 Dec 10
3
PCA on high dimentional data
Hi:
I have a large dataset mydata, of 1000 rows and 1000 columns. The rows
have gene names and columns have condition 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
2008 Sep 02
0
[LLVMdev] Dependence Analysis [was: Flow-Sensitive AA]
> We want to model this as an analysis and make following changes.
>
> - Rename LoopMemDepAnalysis as DataDependenceAnalysis. Various
> transformation passes will use this interface to access data
> dependence info. This is an external interface. Put this in include/
> llvm/Analysis.
> - Make DirectionVector (and later on DistanceVector) independent
> interface and