Displaying 20 results from an estimated 10000 matches similar to: "about colnames"
2006 Jun 06
2
about string
Hello sir:
There are 2 questions about string.
1 How to calculate the width of a string? e.g string "abc"'s width is 3;
2 How can I get the "substring" in such kind of condition:
"f:\\JPCS_signal.txt" "f:\\PC1_signal.txt" "f:\\PC2_signal.txt"
What I wanna get is "JPCS" "PC1" "PC2".How can I achieve them by R
2006 Apr 19
1
about "intersection set" and "union set"
Hello sir:
group1:1,2,3,4
group2:1,3,4,5
group3:2,4,8,9
.. ...
group1000:9,3,8,2
I wanna get the "intersection set" and "union set". I've tried command "setdiff"and "union",but only two groups is permited.How can I deal with multi groups to find the "intersection set" and "union set"?
Thanks a lot!
My best
2008 Jul 24
3
how to export ".xls" file with colorful cells?
Hi all:
I wanna know how to expoort ".xls" file. And in the exported ".xls" file, how to set different cells with different color?
Thanks a lot!
My best.
------------------------------
*******************************************
Xin Meng
Capitalbio Corporation
National Engineering Research Center
for Beijing Biochip Technology
BioPharma-informatics & Software
2006 Sep 20
1
about BATCH and parameter file
Hello sir:
I use Rcmd to execute R code,such as :
"C:\\Program Files\\R\\R-2.2.1\\bin\\Rcmd.exe" BATCH globalLowessRun.r
globalLowessRun.r is a R function written by myself.
But I wanna make the "globalLowessRun.r" changeable,such as globalLinearRun.r or gridbasedLowessRun.r,and so on.
How can I achieve this goal via Rcmd.exe BATCH ?
The only finding is:
Rcmd BATCH
2005 Aug 30
2
about "pnorm"
As to the function"pnorm",the default degree of freedom(df) is infinite.
I wanna know how to set the df as I want.
Help on pnorm doesn't have df setting.The only choice are:"mean, sd, lower.tail, log.p",but no df.
For instance:
sample size=6
df=6-1=5
t value=9.143
I wanna to the corresponding p value by using function "pnorm".
How can I do it?
Thanks a lot
2005 Nov 24
1
a question
Hello sir:
Here's a question:
x<-1:5
y<-c(2,1,4)
I wanna get the different elements between x & y,i.e. 3,5.
How can I get the result(3,5) via R function?
Thanks a lot for your help.
My best!
------------------------------
*******************************************
Xin Meng
Capitalbio Corporation
National Engineering Research Center
for Beijing Biochip Technology
2006 Apr 13
1
about McNemar
Hello sir: How can I perform McNemar (paired chi square test) by using R?
Thanks!
------------------------------
*******************************************
Xin Meng
Capitalbio Corporation
National Engineering Research Center
for Beijing Biochip Technology
BioPharma-informatics & Software Dept.
Research Engineer
Tel: +86-10-80715888/80726868-6438
Fax: +86-10-80726790
Email??xmeng
2006 Sep 27
3
exact 95% confidence intervals
Hello sir:
As to the 2*2 table format for reporting results comparing a new test to true diagnosis,when I got the sensitivity and specificity,how can I calculate the exact 95% confidence intervals (based on the binomial distribution) for sensitivity and specificity via R?
Thanks a lot!
My best!
------------------------------
*******************************************
Xin Meng
Capitalbio
2005 Jun 20
1
RES: another aov results interpretation question
Dear All,
I created a script to calculate averages - two groups: "parcel" and
"date" - and, based on these averages, make a graph. The problem is that
'R' does not recognize the first column even if I try to insert one.
A brief example
Raw data:
Data <- sample(1:100, 30, replace = FALSE, prob = NULL)
Date <-
2004 Sep 08
5
a little question about R
Hello,sir: Here's a little question about R which needs your help.Thanks in advance.
If I wanna make a sequence just like a,b,c,d (In other words,a vector consists of 4 characters :a,b,c,d ).How can I do it in a shortcut manner? Yes,I can do it as following: c("a","b","c","d") and the result is:[1] "a" "b" "c"
2009 Apr 07
1
use the value of variable to quote certain elements in matrix
Hi, I want to use the value of variable to quote elements in matrix.
For example, I have a matrix like:
y1 y2m1 1 2m2 3 4
where y1,y2,m1,m2 are column and row names. I have two random character variable, say x, that could be either y1 or y2 and y that could be either m1 or m2. So can I do like Matrix[y,x] to quote elements? I've tried this
2006 Dec 18
3
plot
Hello sir:
a data with 2 columns:
id x
a 1
b 2
c 3
I wanna get such kind of plot:
x: a b c
y:1 2 3
But the plot command doesn't permit string character as x.
How can I get it ?
Thanks a lot !
My best
2008 Aug 11
3
Peoblem with nls and try
Hello,
I can`t figure out how can increase the velocity of the fitting data by nls.
I have a long data .csv
I want to read evry time the first colunm to the other colunm and analisy with thata tools
setwd("C:/dati")
a<-read.table("Normalizzazione.csv", sep=",", dec=".", header=F)
for (i in 1:dim(a[[2]]]) {
#preparazione dati da analizzare
2011 Aug 16
2
how to get the result in "short cut" manner?
Hi all:
My data:data(sleep)
If I wanna calculate each group's extra,what I can do is:
#method1
attach(sleep)
mean(extra[group==1])
mean(extra[group==1])
#method2
result<-matrix(,0,2)
g<-split(sleep,sleep$group)
for(i in 1:length(g))
{
result<-rbind(result,data.frame(unique(g[[i]]$group),mean(g[[i]]$extra)))
}
colnames(result)<-c("name","mean")
But the above
2007 May 18
1
add info
hi all:
If there's a dataframe:
x y
1 a
2 b
3 c
The info of the data such as :
name
date
author
The result I want is:
name
date
author
x y
1 a
2 b
3 c
In other words,I wanna add the info above the dataframe.
How can I do it ?
Thanks a lot!
My best
2005 Apr 04
1
How to extrct F value
Hello sir:
Here's the result of repeated measures ANOVA.
$"Error: Within"
Df Sum Sq Mean Sq F value Pr(>F)
t 2 524177 262089 258.24 1.514e-06 ***
Residuals 6 6089 1015
---
Signif. codes: 0 `***' 0.001 `**' 0.01 `*' 0.05 `.' 0.1 ` ' 1
My question is: How to extract the F value only?
If the result is a
2010 Aug 31
1
any statement equals to 'goto'?
I have the following code:
-----------------------------------------------------------------------------------------------------
result <- matrix(NA, nrow=1, ncol=5)
for(i in 1:(nsnp-1)) {
for(j in (i+1):nsnp){
tempsnp1 <- data.lme[,i]
tempsnp2 <- data.lme[,j]
fm1 <- lme(trait~sex+age+rmtemp.b+fc+tempsnp1+tempsnp2+tempsnp1*tempsnp2,
random=~1|famid, na.action=na.omit)
fm2 <-
2005 May 18
1
covariance analysis by using R
Hello sir:
Here's a question on covariance analysis which needs your help.
There're 3 experiments,and x refers to control while y refers to experimental result.
The purpose is to compare the "y" values across the 3 experiments.
experiment_1:
x:0.1 0.2 0.3 0.4 0.5
y:0.5 0.6 0.6 0.7 0.9
experiment_2:
x:1 2 3 4 5
y:3 4 6.5 7.5 11
experiment_3:
x:10 20 30 40 50
y:18 35 75 90
2004 Dec 10
4
cbind() and factors.
Hi
I'm seeing some "odd" behaviour with cbind(). My code is:
> cat <- read.table("cogs_category.txt", sep="\t", header=TRUE,
quote=NULL, colClasses="character")
> colnames(cat)
[1] "Code" "Description"
> is.factor(cat$Code)
[1] FALSE
> is.factor(cat$Description)
[1] FALSE
> is.factor(rainbow(nrow(cat)))
[1]
2005 Jul 20
3
Prefix for colnames
Hi,
I would like to add a prefix to colnames in a matrix but I can't get the prefix
option in colnames to work. What am I doing wrong?
> X<-matrix(NA,3,4)
> colnames(X)<-c("test","test","test","test")
> colnames(X)<-colnames(X,prefix="PREFIX.")
> X
test test test test
[1,] NA NA NA NA
[2,] NA NA NA NA