similar to: splitting dataframe, assign to new dataframe, add new rows to new dataframe

Displaying 20 results from an estimated 3000 matches similar to: "splitting dataframe, assign to new dataframe, add new rows to new dataframe"

2002 Sep 10
3
print
Hi all, Suppose I have a vector Fruits <- c('Apple','Orange','Pear','Banana','Mango') I want to print the statement "The fruits in the basket are: Apple, Orange, Pear, Banana, Mango" If I do: print(paste('The fruits in the basket are:',Fruits)) The output is: [1] "The fruits in the basket are: Apple" "The fruits in
2011 Feb 09
2
assign factor levels based on list
All, Given a data frame and a list containing factor definitions for certain columns, how can I apply those definitions from the list, rather than doing it the standard way, as noted below. I'm lost in the world of do.call, assign, paste, and can't find my way through. For example: #set up df y <- data.frame(colOne = c(1,2,3), colTwo =
2006 Mar 24
2
Return all rows, split then show uniques
I''m returning some rows from a tags database that look like this: ID WORDS 1. apple banana pear 2. banana melon 3. apple peach lime What I want to do with that data is use the .split method to divide them into separate values in an array, then use the .uniq method to return a unique list of the words like so: apple, banana, pear, melon, peach, lime So in my controller I
2009 Jun 03
1
Still can't find missing data - How do I get NA in xtabs with factors?
The problem here is Table doesn't seem to have a way to weigh the data. > ToyData Data1 Data2 Data3 Weight 101 Sam Red Banana 1.1 102 Sam Green Banana 2.1 103 Sam Blue Orange 2.1 104 Fred Red Orange 2.1 105 Fred Green Guava 2.1 106 Fred Blue Guava 2.1 107 <NA> Red Pear 50.1 108 <NA> Green Pear 50.1 109 <NA> Blue
2009 May 26
3
Still can't find missing data
I'm trying to prepare some cross tabs, looking at a number of variables against a variable "connector" which has 2 values: "OD Passenger" and " Connector". When I produce a xtabs one way I have observations under "Connector" but against a different variable "Connector" shows all 0 values. What is wrong? I've looked into the na commands
2019 Jul 18
2
ubuntu equivalent of ctrl-a on windows
Hi All: I'm using an old version of Ubuntu, 14.04, and I can't figure out a keyboard sequence that "selects all" analogously to what ctrl-a does on windows ? If anyone can be bothered running below and see if they have a way to select all four fruits at once, it's appreciated. I've spent quite a bit of time searching the net, going on AskUbuntu etc but no luck. Thanks.
2006 Apr 11
2
concat results from db query
I''ve got a bunch of records coming back from a database like so ID WORDS 1. banana apple orange 2. apple pear 3. banana orange I want to take the records in the WORDS field and concatinate them into one large array so I can play around with it. How do I do this? -- Posted via http://www.ruby-forum.com/.
2008 Nov 07
6
How to spec a (Trollop-based) binary’s internal state?
I?m trying to spec a ?binary?, and as previously discussed on this list, I?m trying to do it ?from outside? ? i.e., by calling it with Kernel#` and observing the (side-)effects. Unfortunately, this doesn?t really let me spec expectations about its internals. Let?s assume I have a -d flag and I parse it with Trollop to set Conf.debug: opts = Trollop::options do opt :debug, ''Print debug
2007 May 13
1
Dropdown boxes in tcltk and R
Hello, I'm very much a newbie in R and more so in tcltk so apologies if this question is stupid. Basically I am trying to use the combobox example found here: http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/DropDown.html . What I want to do is in that example get fruitChoice as a variable in R in general. When I run that code, however, and the ask for fruitChoice it says
2019 Jul 18
2
ubuntu equivalent of ctrl-a on windows
thanks david. that worked for me too and I like your detective approach. I'll remember that the next time I need another equivalent. On Thu, Jul 18, 2019 at 4:13 PM David Winsemius <dwinsemius at comcast.net> wrote: > > On 7/18/19 1:02 PM, Mark Leeds wrote: > > Hi All: I'm using an old version of Ubuntu, 14.04, and I can't figure > out a > > keyboard
2012 Aug 27
2
randomLCA
Can anybody, please, explain me how many parameter are estimated using randomLCA? For examples, model "dentistry.lca2random" estimate 1 scale (or variance, b_j) parameter and 2 position parameters (a_cj)? Doesn't it? Do I need at least 4 diagnostic tests for such a model? What happens if I specify options blocksize and byclass? How many diagnostic tests (or rater) I need?
2013 Mar 20
2
Pattern match
Hello again, in the help page of grep() function, it is written that pattern: character string containing a regular expression (or character string for fixed = TRUE) to be matched in the given character vector. Coerced by as.character to a character string if possible. If a character vector of length 2 or more is supplied, the first element is used with a warning. Missing values are allowed
2012 Mar 09
4
php-pear problem on yum update
Hello list I have centos-release-5-7.el5.centos and today I noticed that there are some updates with yum. I try to update but something hapend with php-pear: file /usr/share/pear/.channels/__uri.reg from install of php-pear-1.4.9-8.el5.noarch conflicts with file from pa ckage php-pear-ole-0.5-2.el5.rf.noarch file
2015 Apr 08
2
EPEL no php-pear package?
Does anyone know what package provides the pear utility for php on CentOS? I tried installing a php-pear module from epel and got this error: Resolving Dependencies --> Running transaction check ---> Package php-pear-DB.noarch 0:1.7.13-3.el6 will be installed --> Processing Dependency: php-pear(PEAR) for package: php-pear-DB-1.7.13-3.el6.noarch --> Processing Dependency:
2006 Jun 04
1
Fwd: Re: How to call a value labels attribute?
How is what you are doing any different from factors? > x <- factor(c(1, 2, 3, 3, 2, 3, 1), labels=c("apple", "banana", "other")) > x [1] apple banana other other banana other apple Levels: apple banana other > as.numeric(x) [1] 1 2 3 3 2 3 1 > levels(x)[3] <- "birne" > x [1] apple banana birne birne banana birne apple
2001 Mar 14
3
get statistics by group
Hi, I have a data set look like this: ================================= Fruit Quty apple 20 banana 10 orange 17 apple 30 apple 15 orange 26 banana 15 .........and so on .......... ================================= The level of fruit is 30, that is, there are 30 different fruits. I'd like to compute some simple statistics for each different fruit and get output like this:
2007 Feb 15
2
What is/provides php-pear(PEAR)
I am running up against a less than helpful error message when trying to install php-pear-DB (why people cannot content themselves with all lowercase packages names escapes me, but that is a rant for another time and place). After enableing centos-plus and adding includepkgs=php-pear-DB I get this: # yum install php-pear-DB Setting up Install Process Setting up repositories Reading repository
2010 Apr 17
2
centos egroupware
Hi, I am trying to install egroupware. The installation tests have some warnings. What are the packages missing which I can use yum to install them? Checking PEAR::HTTP_WebDAV_Server is installed: False PEAR::HTTP_WebDAV_Server is needed by: WebDAV. You can install it by running: pear install HTTP_WebDAV_Server Checking PEAR::Auth_SASL is installed: False PEAR::Auth_SASL is needed by:
2008 Jan 14
1
Error install php-pear-db
I have a Centos 5.1 server that I need to install some pear modules php-pear y php-pear-db, i have this error: ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: php-pear noarch
2020 Jun 15
3
Voice "broken" during calls
On Monday 15 June 2020 at 21:19:51, Luca Bertoncello wrote: > But I'm not really sure, that Asterisk could be the problem, since, as I > said, the problem happens even if I connect the phone direct to the > server of Telekom... I think that is significant, even if the routing is still going through the Banana. > Well, during the calls, the BananaPI has a load of max 1, and it