similar to: concat results from db query

Displaying 20 results from an estimated 4000 matches similar to: "concat results from db query"

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
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
2006 Mar 23
3
Split to array then save to DB
Basically I want to take a collection of words like "apple orange banana" textfield in a form and store them into the DB as individual rows. 1. apple 2. orange 3. banana I know I need to use the .split method to divide the words into an array, but i''m not sure how to then save them and where this should happen (in the controller or the model). I''m a newb at this,
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.
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
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
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:
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
2006 Apr 11
18
Rails 1.1 in Production
My hosting company is still supporting only Rails 1.0. I have installed Rails 1.1.2 to my vendor directory and deployed it in production which should mean that my application should be using the Rails version in my vendor diretory. But It looks like its still using local gem libraries, here is the error from dispatch.fcgi when I try and invoke my app NoMethodError (undefined method
2009 Oct 13
2
splitting dataframe, assign to new dataframe, add new rows to new dataframe
Hi, all, My objective is to split a dataframe named "cmbine" according to the value of "classes". After the split, I will take the first instance from each class and bin them into a new dataframe, "df1". In the 2nd iteration, I will take the 2nd available instance and bin them into another new dataframe, "df2". >cmbine$names apple tiger pencil chicken
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 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
2017 Aug 30
2
Dataframe Manipulation
i want to do a market basket analysis and I?m trying to create a dataset for that i have two tables, one table contains daily transaction of products in which each row of table shows item purchased by the customer, The second table contains parent group under those products are fallen, for example under fruit category there are several fruits like mango, banana, apple etc. i want to create a third
2004 Aug 06
2
using a web server?
This is a stupid question... Why would one use a streaming audio server versus just a web server to stream static files like a juke box? Here are some reasons I came up with: 1) A web server won't concatinate songs together, but if someone is only downloading say a one-off clip, perhaps a web server is exactly what is needed 2) Titles (or rather meta-data) don't get inserted into the
2006 Apr 20
7
Rails + postgres case insensitive searches.
Hello all I am wondering how rails handles case sensitivity in databases. If I do a Person.find_all_by_name("tim") in mysql I would expect to get tim, TIm, and Tim. Do I only get tim in postgres? How do other people deal with this? Do you resort to find_by_sql for all your postgres queries to get case insensitive results?
2005 Dec 04
1
Understanding nonlinear optimization and Rosenbrock's banana valley function?
GENERAL REFERENCE ON NONLINEAR OPTIMIZATION? What are your favorite references on nonlinear optimization? I like Bates and Watts (1988) Nonlinear Regression Analysis and Its Applications (Wiley), especially for its key insights regarding parameter effects vs. intrinsic curvature. Before I spent time and money on several of the refences cited on the help pages for "optim",
2020 Jun 15
1
Voice "broken" during calls
On Monday 15 June 2020 at 21:50:36, Luca Bertoncello wrote: > Am 15.06.2020 um 21:28 schrieb Antony Stone: > > 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... > >
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
2006 May 17
5
text_field_with_auto_complete (newbie question)
I have the text_field_with_auto_complete woking on my user DB using last_name. so looking for ''ivanoff'' works great, but I can''t find ''john''. Plus I like to have ''last_name, first_name'' show up in the dropdown. what I can''t figure out is how to concat first_name and last_name to make a name and use that to look it. working
2008 Aug 17
2
Optim stripping attributes from relistable objects
Dear all, The following code is inspired by the help file for the relist() function (see?relist), which explicitly details how you can use a relistable object in conjunction with optim to pass and reconstruct complex parameter structures/groupings. The idea is that the optim() function can only work with vectors, but in many cases you would like to use a complex structure inside the objective