Displaying 20 results from an estimated 394 matches for "mileage".
2012 Jun 10
2
problem with sub()
Dear R users:
I want to convert some character vectors into numeric vectors.
> head(price)
[1] "15450 EUR" "7900 EUR" "13800 EUR" "3990 EUR" "4500 EUR"
[6] "4250 EUR"
>head(mileage)
[1] "21000?km" "119000?km" "36600?km" "92000?km" "140200?km"
[6] "90000?km"
in the first example I can use:
price <- sub(" EUR", "", price)
to get
"15450" "7900" "13800" "...
2007 Jan 03
2
Lattice / Trellis analog of axis(graphics) ?
...to admit that
I could not find an answer after an hour's worth of homework.
What is the Trellis / Lattice analog for the axis(graphics) function
that enables the creation of axes in locations other than the default
(i.e., bottom for X axis and right for Y axis) ?
For example when plotting mileage against weight (in American units),
one might want to also include a second X axis on the top margin (e.g.,
axis() pos = 3) with fuel mileage in metric units.
xyplot(Mileage ? Weight, data = fuel.frame)
Thank you,
humbly yours,
Derek Eder
platform i386-pc-mingw32
arch i386
os mingw32
sy...
2011 Jul 18
1
nls() and lines()
All -
I'm having an issue with trying to plot a model derived from nls()
onto a simple plot.? I have included a sample data set and the code
that I've been using.
?? year month day?????? date location mileage? cost gallon????? cpg
? mpg????????? x
2009???? 1?? 4?? 1/4/2009????? BZN? 124585 19.39? 14.37 1.349339
10.71677 2009-01-04
2009???? 1? 15? 1/15/2009????? BZN? 124888? 23.2? 16.12 1.439206
18.79653 2009-01-15
2009???? 1? 27? 1/27/2009????? BZN? 125133 21.51? 14.35 1.498955
17.07317 2009-01-27
2009?...
2009 Jul 24
1
virt-v2v
I've attached v2v/STATUS. There's still a bit to do. I'm not yet
proposing this for inclusion, just discussion.
Apart from the tool itself, I think there's mileage in considering how
the functionality of Sys::Guestfs::Lib could be given more structure. I
think there's considerable mileage in moving much of Sys::Guestfs::Lib
into Sys::Guestfs::GuestOS.
I haven't tried to code anything for Debian in what's here. However, the
intention is that a...
2003 Apr 11
4
Can I improve the efficiency of my scan() command?
Hi,
Suppose I use the following codes to read in a data set.
###############################################
> rating <- scan("../Data/Rating.csv",
+ what = list(
+ usage = "",
+ mileage = 0,
+ sex = "",
+ excess = "",
+ ncd = "",
+ primage = "",
+ minage = "",
+ drivers = "",
+ district = "",
+...
2006 Mar 22
3
Parent-Child Tables Help
...i do it
Mysql::Error: #23000Cannot add or update a child row: a foreign key
constraint fails: INSERT INTO cars (`created_on`, `number_plate`,
`price`, `title`, `updated_on`, `color_id`, `make_id`, `cc_rating`,
`description`, `negotiable`, `views`, `year`, `transmission`, `user_id`,
`car_type`, `mileage`, `model_id`) VALUES('''', ''PBO-5678'', 36000.0, ''2001
Corolla'', ''2006-03-22 02:23:35'', 0, 0, 1800, ''Nice\n'', 0, 0, 2001,
''Manual'', 1, ''\'''', 1600, 0)
also
Request...
2013 Jan 13
3
[LLVMdev] Using C++'11 language features in LLVM itself
...> - lambda v1.0 [2]
> - local types as template arguments
> - r-value 2.0 [3]
> - static_assert
> - built-in type traits
This isn't very encouraging. Anecdotally from what I've seen in LLD
(whose C++11 feature use is bounded only by MSVC 2012), the features
that get the most mileage by a large margin are `auto`, range-for, and
`nullptr`, along with library offerings like unique_ptr<>. Just based
on that, the churn and overhead of imposing new build requirements
doesn't seem worth it at the moment.
-- Sean Silva
2008 Oct 01
0
xpred.rpart() in library(mvpart)
R-users
E-mail: r-help@r-project.org
Hi! R-users.
http://finzi.psych.upenn.edu/R/library/mvpart/html/xpred.rpart.html
says:
data(car.test.frame)
fit <- rpart(Mileage ~ Weight, car.test.frame)
xmat <- xpred.rpart(fit)
xerr <- (xmat - car.test.frame$Mileage)^2
apply(xerr, 2, sum) # cross-validated error estimate
# approx same result as rel. error from printcp(fit)
apply(xerr, 2, sum)/var(car.test.frame$Mileage)
printcp(fit)
I carried out the R object:
fu...
2011 Jul 31
2
XML and odfWeave
...elpers,
this is just a notice to inform everyone that the current versions of XML and
odfWeave don't seem to be playing nice with each other.
Since it took me quite some time to figure that out, I thought that I let you
know. In my case it helped to install an older version of XML but your
mileage of course may vary.
Best regards
Thorsten
--
Thorsten Raff
2nd Medical Department,
University Hospital Schleswig-Holstein, Campus Kiel
Chemnitzstra?e 33
24116 Kiel
GERMANY
phone: +49 431 1697-5234
fax: +49 431 1697-1264
email: t.raff<at>med2.uni-kiel.de
web: www.uk-sh.de
2006 Jul 12
1
Question re: Computing a field in a DB record
...ying to set
a field in a DB record based on the value of another form input
field. Using the scaffold code, the create works as expected and the
update (edit) also works. However, one of the DB fields (amount) is
supposed to be computer from another (units): if the category field
is "Mileage", amount= units * Fed_mileage_rate, otherwise amount= units.
To accomplish this, I removed the amount field from the input form,
as it is never entered directly, and put in an if statement to
accomplish the computation above. When I test this by doing a create
or an update, and units fi...
2012 Aug 01
1
rpart package: why does predict.rpart require values for "unused" predictors?
...tree. It seems logical, therefore, that values for these "unused"
predictors would not be needed for prediction. But when predict() is called
on such models, all predictors seem to be required. Why is that, and can it
be easily circumvented?
Consider this example:
> model <- rpart(Mileage ~ Weight + Disp. + HP, car.test.frame)
> model
n= 60
node), split, n, deviance, yval
* denotes terminal node
1) root 60 1354.58300 24.58333
2) Disp.>=134 35 154.40000 21.40000
4) Weight>=3087.5 22 61.31818 20.40909 *
5) Weight< 3087.5 13 34.92308 23.07692 *...
2011 Mar 05
2
How to show non user defined data set such as cu.summary (from rpart)?
...7 obs. of 5 variables:
$ Price : num 11950 6851 6995 8895 7402 ...
$ Country : Factor w/ 10 levels "Brazil","England",..: 5 5 10 10 10 7 5
6 6 7 ...
$ Reliability: Ord.factor w/ 5 levels "Much worse"<"worse"<..: 5 NA 1 4 2 4
NA 5 5 2 ...
$ Mileage : num NA NA NA 33 33 37 NA NA 32 NA ...
$ Type : Factor w/ 6 levels "Compact","Large",..: 4 4 4 4 4 4 4 4 4 4
...
> ?ls
> ls()
character(0)
-John
[[alternative HTML version deleted]]
2004 Sep 11
2
[LLVMdev] lib/System Changes
Folks,
I have recently committed several lib/System changes. As with previous
commits, the changes work on Linux but for other platforms I'm only
"guessing" at the implementation based on available documentation. Your
mileage might vary. If this breaks compilation on your platform, please
correct the implementation and check it in or submit patches to me and
I'll check it in.
Here's the details of my recent additions ..
(1) Allocating RWX memory is used by the JIT Emitter for code generation
and execution. T...
2002 Dec 14
4
scan() with "what"
...(19MB) CSV file that I'd like to read into R. The
read.csv() function seems to be a bit inefficient to deal with it, and I
remember that using scan() with "what" options is better.
However I'm unable to understand how to use it. The first few lines of
the data look like:
USAGE,MILEAGE,SEX,EXCESS,NCD,PRIMAGE,MINAGE,DRIVERS,DISTRICT,CARGROUP,CAR_AGE,WSCLMS,ADCLMS,FTCLMS,PDCLMS,PICLMS,ADINCUR,PDINCUR,WSINCUR,FTINCUR,PIINCUR,RECORD,DAYS,MINAGEN,PRIMAGEN
SC,7000,M,100,4,59,25,3,4,7,6,0,0,0,,,0,,0,0,,1,85,25,59
SC,7000,M,100,4,59,59,2,4,13,5,0,0,0,,,0,,0,0,,2,278,59,59
SC,7000,M...
2016 Sep 17
2
(Thin)LTO llvm build
So, when I embark on the next ThinLTO try build, probably this Sunday,
should I append -Wl,-plugin-opt,jobs=NUM_PHYS_CORES to LDFLAGS
and run ninja without -j or -jNUM_PHYS_CORES?
2003 Mar 10
1
rpart returning only 1 node
Hi,
This may actually be a theoretical question.
When I tried to do the following:
##########################################################
> colnames(rating.adclms)
[1] "usage" "mileage" "sex" "excess" "ncd"
[6] "primage" "minage" "drivers" "district" "cargroup"
[11] "car.age" "adclms" "days"
> rating.r1 <- rpart(adclms ~ ., data = ratin...
2010 Sep 01
1
Segfault on dovecot 2.0.1 w/ACLs
...IST-EXTENDED I18NLEVEL=1
CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH
LIST-STATUS ACL RIGHTS=texk] Logged in as slusarz
5 LIST (SUBSCRIBED) "" (*) RETURN (SUBSCRIBED)
* LIST (\Subscribed) "." "INBOX"
[...]
* LIST (\Subscribed) "." "Mileage Plus"
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6d0cd61 in ?? () from /usr/lib/dovecot/modules/lib01_acl_plugin.so
(gdb) bt full
#0 0x00007ffff6d0cd61 in ?? ()
from /usr/lib/dovecot/modules/lib01_acl_plugin.so
No symbol table info available.
#1 0x00007ffff7b40eea i...
2005 Feb 25
0
[LLVMdev] LLVM CygWin build error ?
...e, you can't use
the default gcc that comes with Cygwin. I've been successful with GCC
3.4.3 on Cygwin.
I've uploaded a zipped tar file my Cygwin CFE "install" directory. You
can get it here: http://illuvium.com/download/
Use at your own risk (i.e. it works for me, but your mileage may vary).
Reid.
On Thu, 2005-02-24 at 14:21, Aaron Gray wrote:
> There do not seem to be any binaries for CygWin only Linux and the Mac :(
>
> I tried building the frontend on CygWin but ended up with a makeinfo error
> then a build error that I could not do anything about.
>
&...
2001 Jul 07
2
preload vxd
I have a program to use my mp3 player that loads fine
but cant find the .vxd that it needs to communicate.
How can i force wine to preload it, and possibly the .dll
in the dir, so the program can find it. I'm new to wine so
nothing to cryptic please :)
Thanks
A. Evans
2004 Sep 11
0
[LLVMdev] lib/System Changes
...r <reid at x10sys.com> wrote:
> Folks,
>
> I have recently committed several lib/System changes. As with previous
> commits, the changes work on Linux but for other platforms I'm only
> "guessing" at the implementation based on available documentation. Your
> mileage might vary. If this breaks compilation on your platform, please
> correct the implementation and check it in or submit patches to me and
> I'll check it in.