Displaying 12 results from an estimated 12 matches for "evans48".
2008 Mar 18
7
download.file()
Hi,
I wanted to download a file and did the following:
---------------------------------------------------------
> fileLink <- 'ftp://ftp.ncbi.nih.gov/pub/geo/DATA/supplementary/series/GSE1000/GSE1000_RAW.tar'
> download.file(fileLink,'/geoDat')
trying URL 'ftp://ftp.ncbi.nih.gov/pub/geo/DATA/supplementary/series/GSE1000/GSE1000_RAW.tar'
ftp data connection made,
2011 Jan 23
2
Passing in arguments into function
Hi,
I had a function that looked like:
diff <- lm(x ~ y + z)
How can I pass the argument to the 'lm' function on the fly? E.g., if I pass it
in as a string (e.g. "x ~ y + z"), then the lm function treats it as a string
and not a proper argument.
many thanks
[[alternative HTML version deleted]]
2009 Jul 04
3
newby question
Hi,
I work with bio-conductor, but this is probably a basic R question.
I want to emulate the GOBPOFFSPRING$"GO:0008150" command:
> allBP <- GOBPOFFSPRING$"GO:0008150"
> class(allBP)
[1] "character"
> length(allBP)
[1] 16066
>
I want to create a function so that I can execute the command by passing as a parameter the portion in quotes in the above
2009 Dec 11
2
copyING directories and files
Hi,
I am using the windows version of R. I wanted to copy a directory (containing several files) to another directory. Is there any command in R that will let me do this (something like the 'cp' command in UNIX)? I have looked at 'file.copy', but as the name implies I think it only copies one file at a time.
thanks!
[[alternative HTML version deleted]]
2010 Jun 30
2
string question
Hi,
How can I get double quotes embedded in the string?
Example:
--------------
str1 <- '"xyz"'
## desired output
# abc"xyz"
qr2 <- paste('abc',str1,sep='')
print(qr2)
-----------------
Actual output:
> [1] "abc\"str\""
I also tried putting an escape sequence before the quote, but couldn't get the
string that I
2010 Jan 08
3
Newbie question on precision
Hi all,
How can I get R to change the default precision value? For example:
> x=0.99999999999999999
> 1-x
[1] 0
>
Is there a way that I can get a non-zero value using some parameter, or some package?
many thanks.
[[alternative HTML version deleted]]
2009 Apr 21
1
Vizualization of points within sets
Hi all,
I have a visualization question regarding sets. My problem is as follows:
I have several sets, each having some members (or 'points'). I would
like to connect the points, while keeping the sets. For example,
if I have 3 sets (Set 1 contains points A, B, C):
Set 1:
------
A, B, C
Set 2:
-----
A, D, E
Set 3:
-----
C, D, G, H
I would like each set to be represented by a circle
2009 May 06
1
Heatmap: draw horizontal line
Hi,
I wanted to draw a heatmap with some horizontal lines. For example:
#------ code ------
mat <- matrix(-1:1,7,9)
heatmap.2(mat,Rowv=NA,trace = 'none',key=F)
#----end code -----
In this heatmap, I want to subgroup the rows. For instance, I would like to group rows 5,6 & 7 together, and would draw a black line between rows 4 & 5 to demarcate the group. Similarly, I want to
2009 Oct 14
1
Clustering for Ordinal data
Hi,
I just wanted to check whether there is a clustering package available for ordinal data. My data looks something like:
#1 #2 #3 #4.....
A B C D...
D B C A...
D C A A...
where each column represents a sample, and each row some ordinal values. I would like to cluster such that similar samples appear together.
thanks!
[[alternative HTML version deleted]]
2009 Oct 15
1
Lattice package - Trellis
Hi,
I was trying to make a graph using trellis, and my code is:
-----------------------------------------------------------------
library(lattice)
makeGraph <- function(){
trellis.device()
tbg <- trellis.par.get("background")
tbg$col <- "white"
trellis.par.set("background",tbg)
# Test Data
mfr <- matrix(sample(1:100,50,replace=T),ncol=2)
2009 Dec 16
1
Rgraphviz installation
Hi,
I wanted to install Rgraphviz. From the R GUI, I downloaded the package but when I tried to load it I got the following error message:
"This application has failed to start because libcdt-4.dll was not
found. Re-installing the application may fix this problem."
The R commands and errors are:
> utils:::menuInstallPkgs()
trying URL
2010 Feb 03
4
Header in read.table() function
Hi,
I wanted to read in a table that had hyphens in the header / column names. When I read it in however, it replaces the hyphens with a dot. Which parameter in the read.table function do I need to set to change this behaviour?
Example code:
jm <- matrix(1:4,2,2)
rownames(jm) <- c('a','b')
colnames(jm) <- c('a-1','a-2')