search for: rx4

Displaying 10 results from an estimated 10 matches for "rx4".

Did you mean: rx
2007 Jun 05
3
read table
Hi, I'm a novice of R. I want to read the following table into R: names mpg cyl disp hp drat Mazda RX4 21.0 6 160.0 110 3.90 Mazda RX4 Wag 21.0 6 160.0 110 3.90 The command I used is: > test <- read.table(file.choose(),header=T) The result is: Error in read.table(file.choose(), header = T) : more columns than column names Can anybody tells me what is wro...
2013 Apr 12
3
Why copying columns of a data.frame becomes numeric?
...rather than data frame. But, when I copy rows, they data frame retains its class. Why is this? I don't see why copying rows vs columns is so different. > class(mtcars) [1] "data.frame" > head(mtcars) mpg cyl disp hp drat wt qsec vs am gear carb Mazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4 Mazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4 Datsun 710 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1 Hornet 4 Drive 21.4 6 258 110 3.08 3.215 19.44 1 0 3 1 Hornet Sportabout 18.7 8 360 1...
2017 Jun 01
3
odfWeave - A loop of the "same" data
...s 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 have the Rowname as a heading and then...
2017 Jun 01
0
odfWeave - A loop of the "same" data
...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 have the...
2007 Feb 13
1
Questions about results from PCAproj for robust principal component analysis
...irst four eigenvectors of the (robust) covariance matrix are orthonormal: sum(dmpcaprj$loadings[,i]*dmpcaprj$loadings[,j]) = 1 if i == j, ~ 0 if i != j - dmpcaprj$sdev contains the square roots of the four corresponding eigenvalues. - dmpcaprj$n.obs equals R. - dmpcaprj$scores has dimensions Rx4, as it should. HOWEVER, the columns of dmpcaprj$scores are neither de-meaned nor orthogonal. So, apply(dmpcaprj$scores,2,mean) is a non-zero vector, and sum(dmpcaprj$scores[,i]*dmpcaprj$scores[,j]) != 0 if i != j, > 0 if i == j ALSO, - dmpcaprj$scale is in this case a vector of all 1'...
2003 Aug 07
1
graph for selected lines in stars()
...listers, The following command (derived from the example in the ?stars help page) works : data(mtcars) stars(mtcars[, 1:7]) But the following gives an error: stars(mtcars[1, 1:7]) Error in s.y[i, ] : incorrect number of dimensions I was expecting to have the star graph for the first line (Mazda Rx4) The following give an incorrect graph for the first two cars : stars(mtcars[1:2, 1:7]) The following gives the correct graphs for all cars: stars(mtcars[1:32, 1:7]) How can I have correct graphs for a selection of lines ? I am using R 1.7.1 on linux Mandrake 9.1 Thank you for your help Tito...
2013 Apr 16
2
efficiently diff two data frames
...rence: 14.23546" I could use all.equal(), but it only returns human readable info that cannot be easily used programmatically. It also gives no info on the rows. Another way would be to: require(prob) > setdiff(Xe, Xf) mpg cyl disp hp drat wt qsec vs am gear carb Mazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4 Datsun 710 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1 Hornet 4 Drive 21.4 6 258 110 3.08 3.215 19.44 1 0 3 1 But again this doesn't return subsetting indices, nor any info on hte columns. Any suggestions on how to a...
2018 May 10
4
the first name of the first column
Dear all; I need to run heatmap. Because my first column in my data is alphanumeric, I can not run as.matrix(scale(my_data)). So I need to make my data readable as in data(mtcars). In *mtcars *data the first column is alphanumeric and has no name. Thanks, Greg [[alternative HTML version deleted]]
2009 Apr 27
0
VIF's in R using BIGLM
...ression output of BIGLM. Traditionally, this has been possible with the regular lm() function. Follows a quick illustration (the model below is pretty silly, only for illustration purposes). Example dataset: > mtcars mpg cyl disp hp drat wt qsec vs am gear carb Mazda RX4 21.0 6 160.0 110 3.90 2.620 16.46 0 1 4 4 Mazda RX4 Wag 21.0 6 160.0 110 3.90 2.875 17.02 0 1 4 4 Datsun 710 22.8 4 108.0 93 3.85 2.320 18.61 1 1 4 1 Hornet 4 Drive 21.4 6 258.0 110 3.08 3.215 19.44 1 0 3 1 Hornet Sportabout 18.7 8 360....
2008 Jun 30
4
Rebuild of kernel 2.6.9-67.0.20.EL failure
Hello list. I'm trying to rebuild the 2.6.9.67.0.20.EL kernel, but it fails even without modifications. How did I try it? Created a (non-root) build environment (not a mock ) Installed the kernel.scr.rpm and did a rpmbuild -ba --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log The build failed at the end: Processing files: kernel-xenU-devel-2.6.9-67.0.20.EL Checking