Displaying 7 results from an estimated 7 matches for "selct".
Did you mean:
select
2012 Nov 22
0
selcting a random sample and saving it in a seprate dataframe and also remaining part in other data frame
...7 4 87
#8 4 79
#9 4 76
#[[2]]
?# x? y
#1 1 23
#2 1 45
is.data.frame(list1[[1]])
#[1] TRUE
A.K.
----- Original Message -----
From: Madhu Ganganapalli <mganganapalli at upstreamsoftware.com>
To: arun <smartpink111 at yahoo.com>
Cc:
Sent: Thursday, November 22, 2012 2:53 AM
Subject: selcting a random sample and saving it in a seprate dataframe and also remaining part in other data frame
**>
My question is:
I have the following data frame and my distinct values of variable x are 1,2,3,4.
? ? data<-data.frame(x=c(1,1,2,2,2,3,4,4,4),y=c(23,45,87,46,78,12,87,79));**
Here my da...
2007 Mar 02
2
sampling random groups with all observations in the group
Hi
I have a panel dataset with large number of groups and differing number
of observations for each group. I want to randomly select say, 20% of
the groups or 200 groups, but along with all observations from the
selcted groups (with the corresponding data).
I guess it is possible to generate a random sample from the groups ids
and then match that with the entire dataset to have the intended
dataset, but it sounds cumbersome and possibly there is an easier way to
do this? checked the package 'sampling' o...
2011 Oct 04
1
Matching two datasets and updating values
...quot; "cust_9" "cust_10"
> cust_category
[1] "C" "A" "A" "A" "A" "C" "D" "B" "B" "D"
My problem is to match 'cust_category' with 'category' and accordingly selct the value assigned to this category value. In other words, 1st element of cust_category is "C", so it should select the value 0.10, the second element is "A", so it should assign value 0.54 against this. So effectively I should get
cust cust_category cat_val
cust_1 ...
2012 Mar 29
2
subtract a list of vectors from a list of data.frames in an elegant way
...database by first pulling all the names with a query like this "SELECT top 1 * FROM your_table" (thank you Bart Joosen for the idea) and then subtract the variables I am not allow to pull manually ending up with a 'positive' definition of what I want, something I can use in a SQL SELCT statement (see my email on this list from yesterday for more on that).
When I query the database for the variable names I get something similar to 'DBquery' in my working example below, but considerable longer with over 2400 hundred variables. As I only need to remove two or three variabl...
2006 Apr 22
3
Creating a select dropdown box with links to methods
...e="selection">
<option value="choice1">Choice 1</option>
<option value="choice2">Choice 2</option>
</select>
<%= submit_tag("View") %>
<%= end_form_tag %>
Then I have a methond in my controller that based on the selct box
selection, redirects to a different method/view:
def select_view
# Depending on the selection, redirect to a certain view.
if params[:selection] = ''choice1''
redirect_to(:action => ''method1'')
elsif params[:selection] = ''choice...
2007 Jun 01
2
lguest problem on boot of guest kernel
Hi !
Kenrel 2.6.21 (kernel.org)
Patch lguest-2.6.21-254.patch
Distro Slackware 11.0
GCC 3.4.6
GLIBC 2.3.6
HW model name : AMD Duron(tm) procu{s{
Module Size Used by
tun 7680 0
lg 54600 0
just started playing with lguest - patching, compiling and booting the
host-kernel goes ok - compiling lguest is ok as well after
2007 Jun 01
2
lguest problem on boot of guest kernel
Hi !
Kenrel 2.6.21 (kernel.org)
Patch lguest-2.6.21-254.patch
Distro Slackware 11.0
GCC 3.4.6
GLIBC 2.3.6
HW model name : AMD Duron(tm) procu{s{
Module Size Used by
tun 7680 0
lg 54600 0
just started playing with lguest - patching, compiling and booting the
host-kernel goes ok - compiling lguest is ok as well after