similar to: What is the best way to get a subset of a data.frame?

Displaying 20 results from an estimated 20000 matches similar to: "What is the best way to get a subset of a data.frame?"

2012 Jul 18
2
How to have original (name) order after melt and cast command
Dear R helpers, I have a data.frame as given below - dat1 = data.frame(date = as.Date(c("3/30/12","3/29/12","3/28/12","3/27/12","3/26/12", "3/23/12","3/22/12","3/21/12","3/20/12", "3/30/12","3/29/12","3/28/12","3/27/12",
2011 Mar 28
1
Ordering data.frame based on class
Dear R helpers Suppose I have a data.frame as given below - my_dat = data.frame(class = c("XYZ", "XYZ", "XYZ", "XYZ", "XYZ","ABC", "ABC", "ABC", "ABC", "ABC" ),  var1 = c(20, 14, 89, 81, 17, 44, 36, 41, 11, 36), var2 = c(1001, 250, 456, 740, 380, 641, 111, 209, 830, 920)) > my_dat    class
2008 Mar 20
3
Break up a data frame
Hi R users, I have a dataframe in the below format xyz 01/03/2007 15.25 USD xyz 01/04/2007 15.32 USD xyz 01/02/2008 23.22 USD abc 01/03/2007 45.2 EUR abc 01/04/2007 45.00 EUR
2010 Feb 03
2
How to change output 'csv' file
Dear R helpers   After executing the R code, where the last few lines of the code are something like given below.     ## Part of my R code     n = 20   ........ .........   final_output = data.frame(Numbers = numbers, ABC = data1, XYZ = data2, PQR = data3)           write.csv(data.frame(Scenario = paste("Sc_", 1:n, sep = ""), final_output'), 'result.csv', row.names
2011 Dec 04
3
Group several variables and apply a function to the group
Dear R-experts, I am struggling with the following problem, and I am looking for advice from more experienced R-users: I have a data frame with 2 identifying variables (comn and mi), and an output variable (x). comn is a variable for a company and mi is a variable for a month. comn<-c("abc", "abc", "abc", "abc", "abc", "abc",
2011 Mar 29
3
Reversing order of vector
Dear R helpers Suppose I have a vector as vect1 = as.character(c("ABC", "XYZ", "LMN", "DEF")) > vect1 [1] "ABC" "XYZ" "LMN" "DEF" I want to reverse the order of this vector as vect2 = c("DEF", "LMN", "XYZ", "ABC") Kindly guide Regards Vincy [[alternative HTML
2012 May 30
3
Separate Array Variable Content
Hi, I am new in R, i have a matrix like this MyMatrix <- *ABC PQR XYZ* 10 20 30 40 50 60 70 80 90 And, i have an array containing some conditions like this, MyArray <- c("*ABC*>50","*PQR*<50","*ABC*<30 &* XYZ*<40") "ABC>50" "PQR<50" "ABC<30 & XYZ<40"
2017 Jun 22
2
two domain members, different groupIDs
Am 2017-06-22 um 10:44 schrieb Rowland Penny via samba: >> Can I fix that without breaking things? > > If your users have files stored on the domain members, probably not. I understand that this just creates the need to run some chown/chgrp-commands after correcting smb.conf and restarting samba? > Your 'idmap config' block on ALL Unix domain members needs to be >
2010 Aug 25
3
frequency, count rows, data for heat map
Hi all, I have read posts of heat map creation but I am one step prior -- Here is what I am trying to do and wonder if you have any tips? We are trying to map sequence reads from tumors to viral genomes. Example input file : 111 abc 111 sdf 111 xyz 1079 abc 1079 xyz 1079 xyz 5576 abc 5576 sdf 5576 sdf How may xyz's are there for 1079 and 111? How many abc's, etc?
2015 Nov 05
2
constant string as an assembly operand
Hello all, how can one can describe a constant string as an operand in the assembly instruction? for example imagine this instruction: xyz 14 ABC where "xyz" is the operator, 14 is an immediate value, and because of assembly dialect, there should be a constant string with the value of ABC follow the immediate value. How is this possible? What should be the dat describing the
2015 Nov 05
2
constant string as an assembly operand
Hi Tom, Thanks. It should be always ABC. What should be the iops? just (ins i8imm:$val)? what would be the placeholder for a constant string in "ins"? On Thu, Nov 5, 2015 at 4:33 PM, Tom Stellard <tom at stellard.net> wrote: > On Thu, Nov 05, 2015 at 03:20:45PM +0100, Sky Flyer via llvm-dev wrote: > > Hello all, > > > > how can one can describe a constant
2010 Jun 30
2
string question
Hi, How can I get double quotes embedded in the string? Example: -------------- str1 <- '"xyz"' ## desired output # abc"xyz" qr2 <- paste('abc',str1,sep='') print(qr2) ----------------- Actual output: > [1] "abc\"str\"" I also tried putting an escape sequence before the quote, but couldn't get the string that I
2020 Oct 29
2
dovecot quota-warning detection mail
Gedalya-san You are currently logged in without a domain name. Currently, "abc-xyz-unyo-sekkei" users have been converted to "abc-xyz-unyo at example.co.jp". (There is no "sekkei" in the address.) Or just add "@example.co.jp"? When it comes to "abc-xyz-unyo-sekkei at example.co.jp" I can't send a mail. Thank you. morikawa -----Original
2012 Jul 10
2
Count of elements in coulmns of a matrix
Could you please tell me what is the function or method to get count of elements in all the columns in a matrix ? for eg :- ABC XYZ PQR ------ ----- ------ 2 3 4 4 5 5 4 3 2 Result will be like ABC XYZ PQR ------ ----- ------ 2 4 3 Could you please help me
2018 Nov 16
1
sssd ldap_user_search_base filters with '#' characters in names
I'm trying to craft an ldap search filter for use with ldap_user_search_base in sssd.conf which is using Actice Directory (AD) as the back end on CentOS 7 clients The filter looks for users that are memberOf a particular group - however, the group name start with a '#' character - i.e. in AD, the group name is listed as something like '#ABC XYZ' But when I set
2020 Oct 29
2
dovecot quota-warning detection mail
Gedalya-san Thank you for the information. It seems to be difficult... morikawa -----Original Message----- From: dovecot [mailto:dovecot-bounces at dovecot.org] On Behalf Of Gedalya Sent: Thursday, October 29, 2020 1:17 PM To: dovecot at dovecot.org Subject: Re: dovecot quota-warning detection mail Aha. Then it's not a straightforward case of just adding the domain name to the same
2009 Jul 26
1
Need help of exclusion options in rsync-3.0.6
Hi, I have a situation where I want to delete some of my excluded patterns but still want to preserve some other. For example consider below source and destination directory hierarchy. Source Dest ---------- --------- /foo/bar/ /foo/bar/ | -> baz | -> baz | -> xyz | -> xyz | ->
2003 Aug 13
1
Rsync Folder level Synchronizing Problem
Hi, I am using rsync for synchronizing two development work areas(geographically seperated). My Task: To copy abc/USER/xyz/123/456/..... to indiavidual developers remote machines atrting from xyz folder. here USER will vary, so for that i have created module till directory structure abc and the command runs like rsync -avz --times vangrish@ruskin::MODULE/%USERNAME%
2006 Jul 11
1
error when ''Booting WEBrick''
I encountered this problem yesterday so, I decided to build the whole /app directory over but got the same thing again. what I did- I build the MVC files for ''abc'', included abc.rb in /lib, appended environment.rb with ''require abc'' and the service worked fine. And then I did the same for ''xyz'' and ran the server but it failed. both abc.rb and
2012 Nov 08
2
cannot update mailbox - unable to lock for exclusive access
Hi there, We're using Dovecot version 1.0.7 and Postfix, and since upgrading our Linux box we're getting this in the maillog: Nov 8 07:49:11 server1 postfix/local[27901]: 04B8E7081DA: to=<xyz at xyz.com>, orig_to=<abc at abc.com>, relay=local, delay=19, delays=0.07/0/0/19, dsn=4.2.0, status=deferred (cannot update mailbox /var/spool/mail/abc for user abc. unable to lock