Displaying 20 results from an estimated 322 matches for "salari".
Did you mean:
safari
2005 Oct 17
8
Using active record for SELECT MAX(column) FROM ...
Hi,
Is there an easy way of querying an active record for a maximum column
value? I need to do queries like:
SELECT MAX(salary) FROM employees
TIA,
Jeroen
2009 Dec 03
2
Formatting of numbers on y axis
Hello all. I have the following:
plot(salaries$yearID, salaries$salary, type='n', xaxt='n', xlab='',
yaxt='n', ylab='')
axis(1, at=unique(salaries$yearID), labels=unique(salaries$yearID), lwd=.25,
tck=-0.05)
axis(2, axTicks(2), format(axTicks(2), scientific = F))
Which nicely creates the Y axis with th...
2005 Mar 29
6
Aggregating data (with more than one function)
I have the data similar to the following in a data frame:
LastName Department Salary
1 Johnson IT 56000
2 James HR 54223
3 Howe Finance 80000
4 Jones Finance 82000
5 Norwood IT 67000
6 Benson Sales 76000
7 Smith Sales 65778
8 Baker HR 56778
9 Dempsey HR 78999
10 Nolan
2006 Jan 02
5
How to use MySQL sum() to get total of column?
Easy one: Let''s say I have a table called ''employees'' with a column
called salaries, how can I add Employee.salaries_total to the model?
Thanks!
--
Posted via http://www.ruby-forum.com/.
2012 Jun 01
3
Add rank column to data frame as in SQL...
...nk is calculated separately across a partition by categories, the
way you could easily do in SQL. I found this solution in the archives
that looked like it might work:
http://tolstoy.newcastle.edu.au/R/e11/help/10/09/8675.html
The example has a data frame with several car companies, and employee
salaries within them. A column is then added to the data.frame which
should give the descending rank for each employee, partitioned by
company.
But when I implemented it, the results weren't the expected rankings.
What am I doing wrong?
set.seed(1)
DF <- data.frame(Company=sample(c("Ford&...
2010 Sep 16
3
get top n rows group by a column from a dataframe
Hi, is there an R function like sql's TOP key word?
I have a dataframe that has 3 columns: company, person, salary
How do I get top 5 highest paid person for each company, and if I have
fewer than 5 people for a company, just return all of them?
Thanks,
Richard
[[alternative HTML version deleted]]
2008 Jan 26
3
Comparison of aggregate in R and group by in mysql
...replies to my earlier question about "merging" data frames in R.
Actually that's an equivalence to the "join" clause in mysql.
Now I have another question. Suppose I have a data frame X with lots of columns/variables:
Name, Age,Group, Type, Salary.
I wanna do a subtotal of salaries:
aggregate(X$Salary, by=list(X$Group,X$Age,X$Type),Fun=mean)
When the levels of Group and Type are huge, it took R forever to finish the aggregation.
And I used gc to find that the memory usage was big too.
However, in mysql, it took seconds to finish a similar job:
select Group,Age,Type ,avg(S...
2006 Apr 26
2
Ruby On Rails Salary in the UK? how much?
Hi,
What do you think is a reasonable salary for a ROR programmer in
Manchester, UK?
If you''re working with ROR and in the UK i''d be interested in knowing
your salary :-)
Your opinions would be very valuable to me
JD
--
Posted via http://www.ruby-forum.com/.
2013 Sep 07
0
[shoulda-matchers gem] validate_numericality_of_matcher strange behaviour
Hello
I have Vacancy model and vacancy_spec test with validates_numericality_of
:salary, greater_than: 1 in the model and
validate_numericality_of(:salary).is_greater_than(2) in the _spec.
When i run rspec spec command tests pass (in some cases and in other they
don''t)
Why?
vacancy.rb
------------------------
class Vacancy < ActiveRecord::Base
validates_presence_of :name,
2010 Jul 21
1
Obtaining the unmerged cases from one of the two data set
Dear "R Gurus",
I am having two dummy csv data sets A and B containing 19 and 15
cases/observations respectively. From the two data set 13 cases are
intersection. From one of the two (any) data set, How do I then retrieve
the unmerged data ? let's take A for example, six cases must appear in
our results. See the R codes below.
Please assist.
Looking forward to hearing
2007 Aug 30
5
Single plot multiple levels in x?
Plotting with 2 x axis?
One axis inside another, for example salary within state,
1-50 | 50 ? 100 | 100+ | 1- 50 | 50 -100 | 100+ | ? repeated bins for salary
AL ! AR ?? more states
The values are all stored with a single data frame. I have tried different things with the axis function and done many
2011 Apr 18
1
Way OT: Anyone know where to get data on relationship between education and salary
I'm sorry for the way OT post, but here goes. I'm an informatics
specialist, and R user. My wife is a secondary school maths teacher.
My wife recently tried to explain to her class the link between
education and potential salary, and I would love to be able to show this
graphically, however, I cannot find any freely available data for this.
Does anyone know of a suitable dataset,
2010 Jul 23
3
Filtering in R
The dataframe is
id salary
100 500
101 600
102 700
103 800
how can i generate a subsets if salary>600?
--
View this message in context: http://r.789695.n4.nabble.com/Filtering-in-R-tp2299603p2299603.html
Sent from the R help mailing list archive at Nabble.com.
2006 Apr 09
16
Mapping to BigDecimals instead of Floats
Hi everyone,
I''m new to Rails and Ruby, and have been working my way through the Pickaxe
and Agile Rails books for the last week or so. With a background in payroll
apps I found that the default ActiveRecord mapping of decimal columns to
float variables really bothered me! Financial calcs need high levels of
accuracy and floats just don''t give you that.
I know there are a bunch
2012 Jan 31
1
Currency symbols in Xtick or Ytick labels
How do you label Xtick and Ytick marks with Currency symbols: $2000
instead of 2000? I would like to add dollar symbols to tickmarks on
boxplots, histograms and back-to-back histograms.
My Examples (requiring the lattice and Hmisc packages):
data(case0102, package="Sleuth2")
str(case0102)
boxplot(Salary~Sex, case0102)
histogram(~ Salary | Sex, data=case0102)
require(Hmisc)
#
2011 Oct 24
4
Problem with svyvar in survey package
I am facing a problem with a function in survey package. The function svyvar
gives the estimated population variance from a given sampling scheme. I am
working with a data having more than four continuous variables. In order to
have have population total for all those cont. variables I have written in
the following format
svyvar(~var1+var2+var3+var4+var5+var6,data) ; var1,var2,...,var6 are 6
2011 May 04
3
Regexp question
I have a string like this
st <- "SELECT COUNT(empid), COUNT(mgrid), COUNT(empname),
COUNT(salary), FROM Employees"
How can I remove the last comma before the FROM statement?
-J
2009 Dec 02
2
Extracting vectors from a matrix (err, I think) in RMySQL
I have a query which returns a data set like so:
> salaries
yearID POS pct
1 2009 RF 203
2 2009 DH 200
3 2009 1B 198
4 2009 3B 180
5 2009 LF 169
6 2009 SS 156
7 2009 CF 148
8 2009 2B 97
9 2009 C 86
10 2008 DH 234
11 2008 1B 199
12 2008 RF 197
13 2008 3B 191
14 2008 SS 180
15 2008 CF 164
16 2008...
2007 Jan 10
6
Updating an attribute in db
Hello
I am a Ruby newbie, thus a rather simple question.
My list view shows table records and enables user to click a button in
order to change value of one attribute in given record. I use this code
to invoke a method from controller:
<%= button_to "Change", { :action => "edit", :id => prog.id_prog } %>
My method looks like this (just a simple one - to set the
2013 Dec 17
0
result
Mydata is as under.
dat=" salary ex
+ 1 1856 1799
+ 2 1856 1800
+ 3 1858 1800
+ 4 1858 1801
+ 5 1862 1803
+ 6 1862 1805
+ 7 1862 1810
+ 8 1865 1805
+ 9 1865 1808
+ 10 1865 1815
+ 11 1865 1820
+ 12 1870 1810
+ 13 1870 1830
+ 14 1880 1840
+ 15 1880 1845
+ 16 1880 1851
+ 17 1880 1853
+ 18 1880 1855
+ 19 1885 1850
+ 20 1885 1852
+ 21 1885 1857
+ 22 1885 1860
+ 23