Displaying 3 results from an estimated 3 matches for "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 <- read.table("myDB.csv&quo...
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 the 1st of May to the 30th o...
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 <- read.table("myDB.csv&quo...