Displaying 20 results from an estimated 1167 matches for "mpg".
Did you mean:
mp3
2004 Jun 09
1
Samba client filesize problems
...ntpoint [-o options,...]
Version 2.2.9
[root@jonspc bin]# uname -a
Linux jonspc 2.4.20-8 #1 Thu Mar 13 17:18:24 EST 2003 i686 athlon i386
GNU/Linux
[root@jonspc record]# ls -lt
total 25793202411
-rwxr-xr-x 1 root root 18446744071562071792 Jun 9 02:46
Channel 4 - 2004,06,09 00,23,13_001.mpg
-rwxr-xr-x 1 root root 2147477442 Jun 9 01:34 Channel 4 -
2004,06,09 00,23,13.mpg
-rwxr-xr-x 1 root root 894211652 Jun 8 23:39 BBC TWO -
2004,06,08 13,47,17_007.mpg
-rwxr-xr-x 1 root root 2147464426 Jun 8 23:02 BBC TWO -
2004,06,08 13,47,17_006.mpg
-rwxr-xr-x...
2018 Apr 16
2
[Bug 106080] New: Time-out in `nvkm_fifo_chan_child_fini()`
...xorg
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
Assignee: nouveau at lists.freedesktop.org
Reporter: pmenzel+bugs.freedesktop at molgen.mpg.de
QA Contact: xorg-team at lists.x.org
Created attachment 138869
--> https://bugs.freedesktop.org/attachment.cgi?id=138869&action=edit
Linux 4.14.30 messages
With Linux 4.14.30, X.Org X Server 1.19.3, libdrm 2.4.89 and Nouveau 1.0.15,
the X session of a user was just black comin...
2003 Sep 03
0
[Help] Samba Panic with Samba 3.0Beta3, LDAP
...nman: False/0
smb: False/0
rpc_parse: False/0
rpc_srv: False/0
rpc_cli: False/0
passdb: False/0
sam: False/0
auth: False/0
winbind: False/0
vfs: False/0
idmap: False/0
doing parameter passdb backend = ldapsam:ldap://localhost:389
doing parameter ldap suffix = dc=eva,dc=mpg,dc=de
doing parameter ldap admin dn = cn=manager,dc=eva,dc=mpg,dc=de
doing parameter ldap filter = (&(objectclass=sambaSamAccount)(uid=%u))
doing parameter ldap machine suffix = ou=machines
doing parameter ldap user suffix = ou=users
doing parameter idmap backend = ldap
doing parameter ldap idm...
2020 Oct 21
2
AES spesification
Dear
I use dataset , as called "mpg"
This is code
ggplot(data=mpg)+ geom_point(mapping = aes(x=displ, y=hwy, colour=year))
But I would like to see only "year of 1999" in this relationship between x
and y variables
How could I change the code in this direction?
I found the following code
library(dplyr)year_1999 &l...
2013 Jul 25
1
GGplot 2 – cannot get histogram and box plot axis to match.
...do instead?
Background:
I am building a Shiny app that displays a histogram below a bar chart for a set of data that a user uploads to the app. If you want to see the app, go here http://spark.rstudio.com/jclow/Archive20130725HistogramApp/
To run the app, select ?Use Sample Data? , then select ?MPG.city? under choose a column, then finally select box plot.
Sample code:
Below is a snippet of my code to demonstrate the problems I have.
library(ggplot2)
#sample data from ggplot2
data(Cars93, package = "MASS")
dataSet <- Cars93
#variables to calculate the range to extend the axi...
2007 Oct 01
4
how to plot a graph with different pch
...ld be
different symbols and colors. It should represent what is in the legend.
I tried using the points command but this does not work. Is there
another command in R that would allow me to use different symbols and
colors for the points?
Thank you kindly.
data(mtcars)
plot(mtcars$wt,mtcars$mpg,xlab= "Weight(lbs/1000)", ylab="Miles per
Gallon")
mtcars$wt.cyl<-mtcars$wt[mtcars$cyl]
mtcars$mpg.cyl<-mtcars$mpg[mtcars$cyl]
points(mtcars$wt.cyl, mtcars$mpg.cyl, pch = 17, col = "red")
title("Motor Trend Data")
text(2,10,"LTR",cex=1.2,...
2017 Mar 26
1
Documentation of model.frame() and get_all_vars()
...model frame, with parenthesised names such as
\code{"(offset)"}.}
This is only true for model.frame() methods but not get_all_vars().
For get_all_vars(), arguments passed to '...' are only ever treated as
variables to add to the data frame. See for example:
> str(model.frame(mpg ~ wt, data = mtcars, subset = am == 1), give.attr = FALSE)
'data.frame': 13 obs. of 2 variables:
$ mpg: num 21 21 22.8 32.4 30.4 33.9 27.3 26 30.4 15.8 ...
$ wt : num 2.62 2.88 2.32 2.2 1.61 ...
> str(get_all_vars(mpg ~ wt, data = mtcars, subset = am == 1), give.attr = FALSE)
...
2012 Nov 04
1
Apply same linear model to subset of dataframe
...one. My question is: how can I use fewer lines of code (for example
using a for loop, a function or plyr) to achieve the same output as below?
data(mtcars)
# Apply the same model to the dataset but choosing different combinations of
dependent (DV) and independent (IV) variables in each case:
lm.mpg= lm(mpg~cyl+disp+hp, data=mtcars)
lm.drat = lm(drat~wt+qsec, data=mtcars)
lm.gear = lm(gear~carb+hp, data=mtcars)
# Plot residuals against fitted values for each model
plot(lm.mpg$fitted,lm.mpg$residuals, main = "lm.mpg")
plot(lm.drat$fitted,lm.drat$residuals, main = "lm.drat")...
2009 Jan 26
1
reshape problem: id and variable names not being recognized
...;s structure:
> str(mdat)
'data.frame': 6978 obs. of 4 variables:
$ VehType : Factor w/ 2 levels "Car","Truck": 1 1 2 1 1 2 1 1 1 1 ...
$ Year : Factor w/ 6 levels "2003","2004",..: 5 1 5 6 6 2 2 3 2 5 ...
$ variable: Factor w/ 1 level "mpg": 1 1 1 1 1 1 1 1 1 1 ...
$ value : num 22.4 21.5 22.6 22.4 25 ...
For the purpose of testing, I have stripped out all the variables except for
"mpg."
Casting it without specifying any ids or variables works fine:
> cast(mdat,,mean)
VehType Year mpg
1 Car 2003 22....
2009 Oct 08
0
Plotting fit marginals, multiple plots on same x-axis
...confirmation that that's the right way to go.
So, any suggestions?
To give a concrete example, here's something based on the mtcars
dataset that more-or-less shows what I want, aside from the
complication that my dataset is much larger:
## Make some sample data.
mtc <- within(mtcars, mpg.pred <- predict(lm(mpg~wt)))
hp.cut <- 25*mtc$hp%/%25
mtc.agg <- merge(aggregate(mtc[,c("mpg","mpg.pred")],
list(hp.cut=hp.cut), mean), aggregate(list(count=rep(1,nrow(mtc))),
list(hp.cut=hp.cut), sum))
## Is there an easier way to do this aggregation?
## Basic plot wi...
2020 Apr 16
6
suggestion: "." in [lsv]apply()
...is to
allow one-liner expressions without typing "function(item) {...}" to
surround them. The argument to the anonymous function is simply referred
as ".". Let take an example. With this new feature, the following call
sapply(split(mtcars, mtcars$cyl), function(d) summary(lm(mpg ~ wt,
d))$r.squared)
#??????? 4???????? 6???????? 8
#0.5086326 0.4645102 0.4229655
could be rewritten as
sapply(split(mtcars, mtcars$cyl), summary(lm(mpg ~ wt, .))$r.squared)
"Not a big saving in typing" you can say but multiplied by the number of
[lsv]apply usage and a neater look,...
2014 Nov 04
1
sieve replication and .dovecot.lda-dupes
...pes" replicated?
The other problem is that the vacation response is coming from the wrong
address depending on which field the recipient was listed: "to:" or
"cc:"
Here is my test example:
g9-rz has the vacation rule set up:
date | mail -s test -r jbehrend at mpifr-bonn.mpg.de -c
g9-rz at mpifr-bonn.mpg.de jan at flatpick.de
and this returns this vacation response:
### snip ###
Return-Path: <>
Delivered-To: <jbehrend at mpifr-bonn.mpg.de>
Received: from mail2.mpifr-bonn.mpg.de ([134.104.18.60]) by
mailbox2.mpifr-bonn.mpg.de (Dovecot) with LMTP id
+pgPDz...
2017 Jun 01
3
odfWeave - A loop of the "same" data
Before I go and do this another way - can I check if anyone has a way of looping through data in odfWeave (or possibly sweave) to do a repeating analysis on subsets of data?
For simplicity lets use mtcars dataset in R to explain. Dataset looks like this:
> mtcars
mpg cyl disp hp drat wt ...
Mazda RX4 21.0 6 160 110 3.90 2.62 ...
Mazda RX4 Wag 21.0 6 160 110 3.90 2.88 ...
Datsun 710 22.8 4 108 93 3.85 2.32 ...
............
Say I wanted to have a 'catalogue' style report from mtcars, where on each page I would perhaps h...
2011 Aug 19
2
display only the top-right half of a correlation matrix?
Dear all
Is there an easy way to display only one half (top-right or
bottom-left) of a correlation matrix?
> require(Hmisc)
> rcorr(as.matrix(mtcars[ , 1:4]))
mpg cyl disp hp
mpg 1.00 -0.85 -0.85 -0.78
cyl -0.85 1.00 0.90 0.83
disp -0.85 0.90 1.00 0.79
hp -0.78 0.83 0.79 1.00
n= 32
P
mpg cyl disp hp
mpg 0 0 0
cyl 0 0 0
disp 0 0 0
hp 0 0 0
Since the two sides are identical, there is little v...
2017 May 09
3
R-3.3.3/R-3.4.0 change in sys.call(sys.parent())
...ings for quite a while (ever?) but I noticed
while running tests that it acts differently in R-3.4.0 than in R-3.3.3.
Neither the old or new behavior is nice. E.g., in R-3.3.3 we get
> parseEval <- function(text, envir) eval(parse(text=text), envir=envir)
> parseEval('lattice::xyplot(mpg~hp, data=datasets::mtcars)$call',
envir=new.env())
xyplot(expr, envir, enclos)
and
> evalInEnvir <- function(call, envir) eval(call, envir=envir)
> evalInEnvir(quote(lattice::xyplot(mpg~hp, data=datasets::mtcars)$call),
envir=new.env())
xyplot(expr, envir, enclos)
while in R-3.4.0 w...
2012 Jul 12
1
easy way to fit saturated model in sem package?
Hi,
I am wondering if anyone knows of an easy way to fit a saturated model
using the sem package on raw data? Say the data were:
mtcars[, c("mpg", "hp", "wt")]
The model would estimate the three means (intercepts) of c("mpg",
"hp", "wt"). The variances of c("mpg", "hp", "wt"). The covariance
of mpg with hp and wt and the covariance of hp with wt.
I am i...
2020 Apr 16
2
suggestion: "." in [lsv]apply()
I'm sure this exists elsewhere, but, as a trade-off, could you achieve
what you want with a separate helper function F(expr) that constructs
the function you want to pass to [lsv]apply()? Something that would
allow you to write:
sapply(split(mtcars, mtcars$cyl), F(summary(lm(mpg ~ wt,.))$r.squared))
Such an F() function would apply elsewhere too.
/Henrik
On Thu, Apr 16, 2020 at 9:30 AM Michael Mahoney
<mike.mahoney.218 at gmail.com> wrote:
>
> This syntax is already implemented in the {purrr} package, more or
> less -- you need to add a tilde before your...
2010 Jun 18
1
ggplot2 boxplot: horizontal, univariate
In ggplot2, I would like to make a boxplot that has the following properties:
(1) Contrary to default, the meaningful axis should be the horizontal axis.
Lattice does this, for instance, by
library(lattice);bwplot(~mtcars$mpg)
(2) It is *univariate*, i.e., of a single vector, say mtcars$mpg. I do not wish to make separate plots for the different values of mtcars$cyl.
(3) Nothing on the meaningless axis--the axis that does not correspond to values of mtcars$mpg, the axis which by default is horizontal--should suggest...
2004 Sep 08
0
[WINBIND] adds "weird" attributes in LDAP
hi list,
i recently recognized, that winbind on my fileserver (needed for
allocating SID->UIDs when setting ACL's from windows box) adds ldap
attributes although the SID already exists !!??!?!
example
i have a user "install"
# install, users, eva.mpg.de
dn: uid=install,ou=users,dc=eva,dc=mpg,dc=de
objectClass: posixAccount
objectClass: person
objectClass: sambaSamAccount
cn: install
uid: install
sn: install
displayName: install
uidNumber: 837
gidNumber: 500
sambaSID: S-1-5-21-3833542193-1936992747-4175797896-2674
sambaPrimaryGroupSID: S-1-5-21-...
2009 Aug 16
2
bootstrapped correlation confint lower than -1 ?
Dear R users,
Does the results below make any sense? Can the the interval of the
correlation coefficient be between *-1.0185* and -0.8265 at 95%
confidence level?
Liviu
> library(boot)
> data(mtcars)
> with(mtcars, cor.test(mpg, wt, met="spearman"))
Spearman's rank correlation rho
data: mpg and wt
S = 10292, p-value = 1.488e-11
alternative hypothesis: true rho is not equal to 0
sample estimates:
rho
-0.88642
Warning message:
In cor.test.default(mpg, wt, met = "spearman") :
Cannot comput...