Displaying 20 results from an estimated 5000 matches similar to: "par(mfrow=c(2,4))"
2008 Oct 01
2
Looking for position of character in a string
Hi all,
I would like to check if a string contains "." in it. If yes, I would like
to know the position of "." in the string.
Eg: X<-"NM1236.3"
In above example, "." is at position 7.
I tried functions grep() and match(). It seems they couldn't detect ".".
Thanks in advance for your help,
Sityee
[[alternative HTML version deleted]]
2008 Jul 09
2
Read.table - Less rows than original data
Dear all,
I have problem when reading a table into R. The total row of read in table
has is much less than the original saved table.
I built a 1,273,230 by 6 data set named "mydata2", it was saved in the
following command,
write.table(mydata2, "mydata2.txt", row.name=F,col.name=T,quote=F,sep="\t")
The next day I read in above saved text file into R,
2008 Jun 24
1
Error Handling
Hi All,
The for-loop below stopped when error("Cannot get confidence intervals on var-cov components: Non-positive definite approximate variance-covariance") occurred.
I assigned a row of NA values
to the data frame "m1" manually and reset "j" in the for-loop every time error returned. I’m wondering if
there is a function that can detect error or failure, so the
2008 Jul 09
1
read.table problem
Dear all,
I have problem when reading a table into R. The total row of read in table
has is much less than the original saved table.
I built a 1,273,230 by 6 data set named "mydata2", it was saved in the
following command,
write.table(mydata2, "mydata2.txt", row.name=F,col.name=T,quote=F,sep="\t")
The next day I read in above saved text file into R,
2010 Mar 24
2
splitting word
Hi all,
Could someone tell me how to split a word.
c("AA")
to
c("A","A")
Thanks!
Phoebe
[[alternative HTML version deleted]]
2009 May 04
2
rotate texts
Hi all,
I'm hoping to add texts into a plot. I'm using text() to do it. I wonder if
the text() allow me to make the text vertically printed?
Thanks in advance for help,
phoebe
[[alternative HTML version deleted]]
2009 May 01
3
factor level
Hi All,
I have problem about the factor features.
I read in a .cvs file, a column which is supposed to be numeric, but it
becomes factor level data after reading in.
mydata[,"newXaxis"]
[1] 0 0.430010601 11.23198508 25.00940297 37.75338045
45.98289639
[7] 48.92328133 52.51142822 61.12359751 63.85832121 70.98927949
77.16550181
[13] 97.73545713 113.6588007 118.6588007
2010 Aug 03
1
concatenate values in the vector
Hi all,
Is there a function that allow me to concatenate each value in a vector to a
string?
x<-c("a","b","c","d")
output string = a+b+c+d
Thanks,
phoebe
[[alternative HTML version deleted]]
2009 Nov 09
1
categorization
Hi All,
I have a dataset with a column named "Condition",
Sample Condition
1 c20
2 c20
3 c10
4 c10
5 c9
6 c9
7 c5
8 c5
9 c20
10 c10
Could you let me know the fastest way to change c20->"AA", c20->"BB",
c9->"CC", c5->"DD"
2009 Feb 09
2
summary statistics
Hi all,
I'm wondering if there is a function that can return summary statistics:
N=total number of observation, # missing, mean, median, range, standard
deviation.
As I know, summary() returns some of info I've mentioned above.
Thanks,
SY
[[alternative HTML version deleted]]
2010 Oct 19
3
scatter.smooth() fitted by loess
Hi there,
I would like to draw a scatter plot and fit a smooth line by loess.
Below is the data.
However, the curve line started from 0, which my "resid" list doesn't
consist of 0 value.
It returned some warnings which I don't know if this is the reason
affecting such problem. Here I also attached the warning messages.
Please let me know if there is a solution to fix this. Thank
2006 Mar 27
2
Clustering question \ dist(datmat)
Hello everybody. I am trying to cluster circular data (data points which are angles), thus i can not use the "dist" function in "mclust" to generate my distance matrix, I am using the function " Dij = 0.5*( 1 - cos(theta_i - theta_j)). The thing is "hclust" will not accept this distance matrix, i tried to put it in a data frame, but again i get an error message
2012 May 07
1
wireframe and par(mfrow)
Hello List,
I have some plots with the wireframe() function, and I'd like to
display them in a single jpeg file. I know that par(mfrow=c(x,y)) will
divide my display window in x rows and y columns, and although this
works with plot(), it looks like it's not working with wireframe.
here's my code:
library(lattice)
library(Cairo)
CairoJPEG("wiley-rank.jpeg", width=960,
2009 Nov 24
1
11 distinguishable colors
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091124/10d1a443/attachment-0001.pl>
2012 May 16
3
triangular matrices input/output
Hi,
Is there any package that deals with triangular matrices?
Say ways of inputting an upper (lower) triangular matrix?
Or convert a vector of length 6 to an upper (lower) triangular matrix (by
row/column)?
Thanks!
-----
######################
PhD candidate in Statistics
Big R Fan
Big LEGO Fan
Big sTaTs Fan
######################
--
View this message in context:
2009 Sep 12
2
Triangular distribution for kernel regression
Hello,
I am trying to get fitted/estimated values using kernel regression and a
triangular kernel. I have found packages that easily fit values from a
kernel regression (e.g. ksmooth) but do not have a triangular distribution
option, and density estimators that have triangular distribution options
that I can't seem to use to produce estimated values (e.g. density). Any
help is appreciated.
1999 Dec 09
0
setting par(fig) resets par(mfrow), par(mfcol)
Can we add a note to the documentation that setting par(fig) resets
par(mfrow) and par(mfcol) to c(1,1)?
Or are mfrow and mfcol now deprecated in favor of all the split screen
stuff? (I was spending the morning trying to write some code that plotted
multiple subplots within whatever plot region was active at the moment; I
was able to set and reset fig successfully, but got very confused as to
2008 Dec 05
0
par(mfrow = ) resets par('cex'), not reduces it (PR#13373)
help(par) says:
'mfcol, mfrow' ...
In a layout with exactly two rows and columns the base value of
'"cex"' is reduced by a factor of 0.83: if there are three or more
of either rows or columns, the reduction factor is 0.66.
In reality, par(mfrow =) *resets* par ('cex'), not reduces it as
documented. To reproduce:
par(cex = 0.5)
par(mfrow = c(2,
2011 Nov 15
1
Convert full matrix back to lower triangular matrix
Given a vector;> ab = seq(0.5,1, by=0.1)> ab[1] 0.5 0.6 0.7 0.8 0.9 1.0
The euclidean distance between the vector elements is given by the lower triangular matrix > dd1 =
dist(ab,"euclidean")> dd1 1 2 3 4 52 0.1 3 0.2 0.1 4 0.3 0.2 0.1 5 0.4 0.3 0.2 0.1 6 0.5 0.4 0.3 0.2 0.1
Convert the lower triangular matrix to a full
2011 May 13
2
How to store a triangular matrix
Hello, I want to create a triangular matrix and only keep the lower triangle entries without having to allocate memory for the whole matrix, is there any way I can do something like
A<-matrix(data, nrow=50)
but for a triangular matrix?
Thanks
ERV
[[alternative HTML version deleted]]