r-car

Change Axis Label - R scatterplot

跟風遠走 提交于 2019-12-08 08:13:06
问题 I am using the CAR library scatterplot function trying to do something similar to R: Replace X-axis with own values. However the result is badly formatted. Does anyone know how to replace the x axis values when using scatterplot? My code is below library(car) dat = data.frame(x=1:10, y=1:10) scatterplot(y~x, data=dat, xlab="X axis", ylab="Y Axis", xaxt="n") axis(1, at=seq(1,10,2), labels=letters[1:5]) With the resulting image 回答1: Reading the car:::scatterplot help page, as it seems is my

Unable to install package car

梦想与她 提交于 2019-12-07 10:47:06
问题 I am using R version 3.2.3 in Linux mint 17.3 64 bit. I was trying to install the package "car" with dependencies=TRUE , but the installation failed with the following error messages: > warnings() Warning messages: 1: In install.packages("car", dependencies = T) : installation of package ‘minqa’ had non-zero exit status 2: In install.packages("car", dependencies = T) : installation of package ‘RcppEigen’ had non-zero exit status 3: In install.packages("car", dependencies = T) : installation

Car package not found by R (failed to load)

做~自己de王妃 提交于 2019-12-06 06:06:21
I am am trying to load a simple dataset using: library(car) but I get the following error: Error in library("car") : there is no package called 'car' Does anyone have an idea why this happens and how to solve it? If you don't currently use an IDE (or even if you do), the following will install the package: install.packages("car") Before then running library("car") You should heed @Iris's advice and use a RStudio if you don't already to manage just this sort of task. You forgot to install the package before you tried to load it. Do you use a IDE (integrated development environment)? I can

'car' dependency error: Installing caret in R 3.1.2

落爺英雄遲暮 提交于 2019-12-05 22:04:17
Cannot install caret package !! install.packages("caret") Installing package into ‘/home/timekeeper/R/x86_64-unknown-linux-gnu-library/3.1’ (as ‘lib’ is unspecified) Warning: dependency ‘car’ is not available trying URL 'http://mirrors.softliste.de/cran/src/contrib/caret_6.0-52.tar.gz' Content type 'application/x-gzip' length 3665293 bytes (3.5 Mb) opened URL ================================================== downloaded 3.5 Mb ERROR: dependency ‘car’ is not available for package ‘caret’ * removing ‘/home/timekeeper/R/x86_64-unknown-linux-gnu-library/3.1/caret’ The downloaded source packages

Unable to install package car

爷,独闯天下 提交于 2019-12-05 17:43:54
I am using R version 3.2.3 in Linux mint 17.3 64 bit. I was trying to install the package "car" with dependencies=TRUE , but the installation failed with the following error messages: > warnings() Warning messages: 1: In install.packages("car", dependencies = T) : installation of package ‘minqa’ had non-zero exit status 2: In install.packages("car", dependencies = T) : installation of package ‘RcppEigen’ had non-zero exit status 3: In install.packages("car", dependencies = T) : installation of package ‘leaps’ had non-zero exit status 4: In install.packages("car", dependencies = T) :

How to recode a variable to numeric?

别等时光非礼了梦想. 提交于 2019-12-03 16:57:21
> library(car) > df = data.frame(value=c('A', 'B', 'C', 'A')) > foo = recode(df$value, "'A'=1; 'B'=2; 'C'=3;", as.numeric.result=TRUE) > mean(foo) [1] NA Warning message: In mean.default(foo) : argument is not numeric or logical: returning NA > foo [1] 1 2 3 1 Levels: 1 2 3 Ugh. I thought the definition of as.numeric.result (default TRUE) was that if the results are all numerals, they would be coerced to numeric. How do I get the results of this recoding to be numeric? If you look carefully at the documentation on recode you'll see this: as.factor.result return a factor; default is TRUE if var

R, car package unable to load

青春壹個敷衍的年華 提交于 2019-11-27 15:21:01
I'm new with R, and I'm having some trouble loading the car library. I use Windows 8.1 (64 bit) and i'm working in 32 bit R environment. I downloaded the library just fine, but when i try to load the car library using library(car) the message i get is: Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called ‘quantreg’ Error: package or namespace load failed for ‘car’ This message came up asking for several other libraries besides quantreg . I downloaded some of those other libraries in the hope that it would be enough to run car, but

R, car package unable to load

我的未来我决定 提交于 2019-11-26 17:09:34
问题 I'm new with R, and I'm having some trouble loading the car library. I use Windows 8.1 (64 bit) and i'm working in 32 bit R environment. I downloaded the library just fine, but when i try to load the car library using library(car) the message i get is: Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called ‘quantreg’ Error: package or namespace load failed for ‘car’ This message came up asking for several other libraries besides