Displaying 20 results from an estimated 200 matches similar to: "if ((x >.2 || x<(-.2)) && (col(x)!=row(x))) {x=x[,-col(x)]}"
2009 Apr 29
3
mode(x) <- "double"
Hi,
I need your help!!
I imported a big coloumn vector from a txt file but it results as mode
:"list" I want to change it in numeric otherwise I can't do my analysis.
This is what i get:
mode (data) <- "double"
Error in eval(expr, envir, enclos) :
(list) object cannot be coerced to type 'double'
>
Thanks a lot!!!
Alessandra
--
View this message in
2008 Jul 09
5
Summary Stats (not summary(x))
I'm looking for a function that lists a few summary stats for a column (or
row) of data. I'm aware of summary(x), but that does not give me what I'm
looking for.
I'm actually looking for something that is very similar to the descriptive
statistics tool in excel; i.e. Mean, Std. Error, Std. Deviation, Kurtosis.
I'm positive that I came across a function that did this (possibly
2009 Nov 04
4
unexpected results in comparison (x == y)
Dear readers of the list,
I have a problem a comparison of two data from a vector. The comparison
yields FALSE but should be TRUE. I have checked for mode(), length() and
attributes(). See the following code (R2.10.0):
-----------------------------------------------
# data vector of 66 double data
X =
2002 Nov 08
2
ext3 and secure deletion of files and file slack
Hi,
Can anyone please tell me if I am right in assuming that ext3
does not care about file slack? Specifically I am thinking about
the use of the secure_delete utility which, includes "sfill" to
do secure overwriting of the unused diskspace on the harddisk.
I quote from the secure_delete README below for its modus
operandi (I appreciate that some of this will not apply to
sfill).
1997 Jul 14
1
R-beta: Plotting: numeric 'col' colors; col=0, col=1, .. | Nice "funclet"
``We all know''
that R has more flexible and nicer color specifications than S-plus.
There are situations however, where I'd like to specify colors numerically,
e.g.
1) convenience of using different colors in a for(.) loop
or
2) backward compatibility with S.
In S, there's the quite known ``standard''
col = 0 :<==> current background color [ = white by
1998 Nov 12
0
[COL/ROW]NAMES -> [col/row]names with new arg..
R-devel subscribers: this came from R-core,
but may interest you....
>>>>> "MM" == Martin Maechler <maechler@stat.math.ethz.ch> writes:
>>>>> "Ross" == Ross Ihaka <ihaka@stat.auckland.ac.nz> writes:
Ross> Martin Maechler writes:
>>> Actually, I've been thinking (and asking Kurt) if we shouldn't use
2020 Jul 10
2
Understand alias-analysis results
Hi!
On 7/10/2020 07:17, Shuai Wang wrote:
> Hello!
>
> Thank you very much! Yes, that makes a lot of sense to me. However, just
> want to point out two things that are still unclear:
>
> 1. The output contains a alias set of only one element, for instance:
> "must alias, Mod Pointers: (i32* %y, LocationSize::precise(4))"
>
> This one really confused
2011 Apr 11
1
Override col.lines and col.symbol in panel.xyplot with type='b'
Dear useRs,
I have a longitudinal experiment with several treatment groups, ~20 subjects per group, ~6 timepoints and a continuous dependent variable. I have been successfully been using lattice::xyplot with this data. However, I have been stumped with a particular application of it.
I would like to use xyplot on my data, broken into treatment groups with the groups argument, using
2012 May 24
3
transform 1 col to 2 col
Dear All
How can I transform 1 column to 2 columns in R?
211217_s_at
GO:0005249
211217_s_at
GO:0005251
211217_s_at
GO:0005515
211217_s_at
GO:0015271
211217_s_at
GO:0030955
211217_s_at
GO:0005249
211217_s_at
GO:0005251
211217_s_at
GO:0005515
211217_s_at
GO:0015271
211217_s_at
GO:0030955
Best Wishes,
Soheila
[[alternative HTML version deleted]]
2010 Apr 05
1
Adding a prefix to all values in a col in a data.frame
Hi All
I am looking for a way to prefix a constant value to all the rows in column
in a data frame.
Eg.
V1
2
3
4
5
I want to make it like this
V1
number2
number3
number4
number5
Thanks!
-Abhi
[[alternative HTML version deleted]]
2011 Oct 29
1
Add col in data.frame
Hello Gurus,
I am still new to R. Here is my issue.
I was trying to add column to data frame that was populated by read.spss().
When I used cbind to add a new variable(column).
library(foreign)
mydf<-read.spss(file="C:/myspss.sav",use.value.labels=FALSE,
to.data.frame=TRUE,use.missings=FALSE)
attr(mydf,"variable.labels")
## it gives you all the labels
2008 May 18
1
How to change col and pch between panels in xyplot
Dear R-helpers,
x <- rep(1:2, 4)
y <- c(2, 4, 3, 5, 1, 3, 2, 4)
w <- factor(rep(1:2, each = 4))
v <- rep(1:2, each = 2, 2)
xyplot(y ~ x | w, groups = v, type = 'b')
How do I tell xyplot to use four colors and four plot characters and
four line types? And how do I set up an appropriate key in each?
_____________________________
Professor Michael Kubovy
University of Virginia
2006 May 06
0
'col'-parameter in 'hist.POSIXt'
Hi guys.
The 'col'-parameter in the 'hist'-method for the classes 'POSIXt' and
'date' does not perform as it does in the default 'hist'-method.
Unfortunately, it does not only change the filling color of the boxes,
but also the color of the axislines.
[Using 'graphics'-package version 2.2.0]
Examples:
# with POSIXct-object
hist(.leap.seconds,
2010 Mar 22
0
Parameter col.axis
I have a very short question.
Is there any possibility to give to the parameter "col.axis" of graphics
function "axis" a vector value of many colors instead of just one color,
otherwise is there any way around it?
Thank you very much
Enio Jelihovschi
UESC - Brazil
[[alternative HTML version deleted]]
2012 Oct 03
1
can't see colors with "col" in boxplot()
Hi,
I am trying to color the data points on my boxplot but I only get the
default black.
Not sure why. Any ideas?
Thank you,
Mark
Here is my code.
> dat.g100 <- dat.sg[100,] # selected gene (row) from a dataframe of
37 columns
> d1 <- as.matrix(dat.g100[,1:18]) # subset 1
> d2 <- as.matrix(dat.g100[,19:37]) # subset 2
# boxplots
> par(mfrow=c(2,1))
> boxplot(d1,
2007 Nov 30
1
about col in heatmap.2
Hi list,
My data set is comprised of 47 columns and about 700 rows.
Most of the values would be around 2, while some will go beyond
in either direction, higher or lower. Is there a way to specify the
parameter of col or others if necessary to have the range of representing
colors be 0----8, and make dark for 2, red for higher than 2 and green
for lower than 2. Is there a way to do this? Thanks a
2007 May 06
0
MySQL adapter bug? Date col being set to NULL when default is 0000-00-00
Ok, simple case. MySQL table with date column. The date column default
is 0000-00-00.
When I view these rows in say SQLyog, all rows in this table have
value of 0000-00-00. by default.
.....
Now, onto my Rails app. I don''t even care about the date column
described above. I am attempting to update an entirely different
column in the same table.
However, when I use an active record to
1999 Nov 19
1
max.col
I am trying to run, in R -Windows95, the example in MASS2,
section 17.2. When I run predplot() on cush.lda I get
> predplot(cush.lda, "LDA")
Error: couldn't find function "max.col"
I get the plot OK, but within predict(), it balks on max.col
A more general question about using VR. Is there an easy way
to use library on VR in general or do I have to move each into
2005 Dec 06
2
how to extract row& col names from a matrix
Dear all,
I like to extract row names & column names from the named matrix......
like......
a<-matrix(1:6,2)
ro<-c("aa","bb")
co<-c("dd","ee","ff")
dimnames(a)<-list(ro,co)
a
>
dd ee ff
aa 1 3 5
bb 2 4 6
from the above matrix "a"
I like to extract
rownames separately like
1999 Sep 27
0
text( col=, cex=, font=) : doesn't allow more than length-1 arg (PR#287)
text(..., col = <..>) doesn't work if col has length more than one;
and the same for 'cex' and 'font'
A toy example, showing what is desired
plot(1);text(1.2, .8+(0:5)/16, LETTERS[6:1])
## works alright
plot(1);text(1.2, .8+(0:5)/16, LETTERS[6:1],col=1:6)
##>>> Error in par(args) : parameter "col" has the wrong length
---
Explanation:
The source