Displaying 20 results from an estimated 1300 matches similar to: "cbind in for loops"
2010 Jul 23
3
Filtering in R
The dataframe is
id salary
100 500
101 600
102 700
103 800
how can i generate a subsets if salary>600?
--
View this message in context: http://r.789695.n4.nabble.com/Filtering-in-R-tp2299603p2299603.html
Sent from the R help mailing list archive at Nabble.com.
2001 Mar 15
1
Printing problems with wine
Hello,
I have some Problems with getting WINE to print. I'm using wine on a
non-Windows machine with Debian Potato. Everything works fine except
printing. When I try to print something I always get something like
"Printer not setup properly".
The errormessage from wine is
err:psdrv:PSDRV_AFMGetCharMetrics No whitespace found.
My .wine/config -file looks like this:
[parallelports]
2010 Jul 06
3
how to define a function in R
1. how to write a R script?
2.How to write a SAS like macro/generic process to process multiple files by
using the same funstion in R?
Thanks in advance
--
View this message in context: http://r.789695.n4.nabble.com/how-to-define-a-function-in-R-tp2280290p2280290.html
Sent from the R help mailing list archive at Nabble.com.
2010 Jul 19
3
invalid type error
>myDF =
data.frame(id=c("A10","A20"),d1=c(.3,.3),d2=c(.4,.4),d3=c(-.2,.5),d4=c(-.3,.6),d5=c(.5,-.2),d6=c(.6,-.4),d7=c(-.9,-.5),d8=c(-.8,-.6))
>doit=function(x)c(x[1],sum_LK_positive=sum(x[-1][x[-1]>0]),sum_LK_negative=sum(x[-1][x[-1]<0]))
> myDF
id d1 d2 d3 d4 d5 d6 d7 d8
1 A10 0.3 0.4 -0.2 -0.3 0.5 0.6 -0.9 -0.8
2 A20 0.3 0.4 0.5 0.6 -0.2
2010 Jul 22
5
choosing a random sample by precentage
hi all
i have found the follwoing way to choose a random sample by sample size (200):
ten_per_T2000 <- F_T2000_All[sample(nrow(F_T2000_All), 200), ]
but i wondered if there is a way to choose a sample size by
precentage (10% etc..)
thx
ethan
2010 Jul 22
2
p-VALUE calculation
Here is my dataframe with 1000 rows:
employee_id weigth p-value
100 150
101 200
102 300
103 180
.....
My question:
how can I calculate the p-value in R for each employee? the
distribution of the weigth will be established from the above 1000 samples.
--
View this message in context:
2010 Jul 07
3
how to process this in R
Here are what i am going to accomplish:
I have 400 files named as xxx.txt. the content of the file looks like the
following:
name count
1. aaa 100
2. bbb 2000
3. ccc 300
4. ddd 3000
........
more that 1000 rows in each files.
these are the areas i need help:
1. how can i only read in the files with the string patterns ggg or fff as
part of the file names?
for
2010 Jul 27
4
re-sampling of large sacle data
myDF:
d1 d2 d3 d4 d5
-0.166910351 0.022304377 -0.00825924 0.008330689 -0.000925938
-0.166910351 0.022304377 -0.00825924 0.008330689 -0.000925938
-0.166910351 0.022304377 -0.00825924 0.008330689 -0.168225938
-0.166910351 0.022304377 -0.00825924 0.008330689 -0.168225938
-0.166910351 0.022304377 -0.00825924 0.008330689 -0.168225938
-0.166910351
2010 Jul 12
2
boxplot on all the columns
how to use boxplot on all the columns from he date frame instead of manually
entering the columns like below
bhtest1 <- read.table("bhtest1.txt", header=TRUE)
boxplot (bhtest1[,2], bhtest1[,3], bhtest1[, 4], bhtest1[,5], bhtest1[,6],
bhtest1[,7]....)
please help, Thanks,
--
View this message in context:
2010 Jul 23
1
MISSING VALUE IN R
I have a DF
ID VALUE
100 120
101 100
102 100
103
104
105
....
when i calculate the sum of the values, it returned NA. should I populate
the blank value as 0?
Thanks,
--
View this message in context: http://r.789695.n4.nabble.com/MISSING-VALUE-IN-R-tp2299586p2299586.html
Sent from the R help mailing list archive at Nabble.com.
2010 Jul 23
1
na.rm=TRUE
POS=sum(x[-1][x[-1]>0],na.rm=TRUE)
is this the correct syntax?
--
View this message in context: http://r.789695.n4.nabble.com/na-rm-TRUE-tp2299596p2299596.html
Sent from the R help mailing list archive at Nabble.com.
2010 Jul 28
1
error: arguments imply differing number
mydata <- read.table(textConnection("
Id cat1 location item_values p-values sequence
a111 1 3002737 100 0.01 1
a112 1 3017821 102 0.05 2
a113 2 3027730 103 0.02 3
a114 2 3036220 104 0.04 4
a115 1 3053984 105 0.03 5
a118 1 3090500 106 0.02 8
a119 1 3103304
2006 Apr 25
1
deletion those files from destination directory, that no longer exist in source directory.
Hallo
I thought that I need to use `--delete' option for that, but it looks like not.
Problem explanation:
prompt# ls /tmp/dir1/ /tmp/dir2/
/tmp/dir1/:
fil1.txt
/tmp/dir2/:
fil1.txt fil2.txt
prompt# rsync --delete /tmp/dir1/* /tmp/dir2/
prompt# ls /tmp/dir1/ /tmp/dir2/
/tmp/dir1/:
fil1.txt
/tmp/dir2/:
fil1.txt fil2.txt # fil2.txt still exists
My question is,
2011 Jun 19
1
save and load in R
I have a list of txt files that I want to convert into .rdata R data
object.
filenames
1. "./file1.txt"
2. "./file2.txt"
3. "./file3.txt"
4. "./file4.txt"
5. "./file5.txt"
6. "./file6.txt"
7. "./file7.txt"
8. "./file8.txt"
9. "./file9.txt"
10. "./file10.txt"
I saved these files as
for ( i in
2007 Oct 09
5
Playing with ReadFileScatter()
Hi all,
Looking at the IO.readlines source in io.c, it looks to me like they
grab 8k chunks, split on the input record separator, and buffer accordingly.
Since it looks like ReadFileScatter() does some of that work
automatically (in page file sized chunks), I thought I''d give it a try.
Here''s what I''ve got, but it doesn''t work. I have an incorrect parameter
2010 Dec 23
5
Writing a single output file
Dear R helpers!
Let me first wish all of you "Merry Christmas and Very Happy New year 2011"
"Christmas day is a day of Joy and Charity,
May God make you rich in both" - Phillips Brooks
## ----------------------------------------------------------------------------------------------------------------------------
I have a process which generates number of outputs. The R code
2002 Mar 20
2
transferring individual files question, pull vs. push
Can't seem to find the answer anywhere...
I'm currently using an rsync script on the source box to transfer some
individual files to the destination box...all works well. The script:
rsync -e ssh \
/var/qmail/control/file1 \
/var/qmail/control/file2 \
/var/qmail/control/file3 \
/var/qmail/control/file4 \
destination-box.xxxxx.com:/var/qmail/control
Now, instead of "pushing"
2010 Apr 09
5
Ranking correlation with R
Hey Everyone,
Im fresh new in R, and Im supposed to write a code to give me a correlation
between two rankings. So I have two ranking lists, which contain file names,
e.g.:
Ranking list 1:
file1.java
file3.java
file2.java
Ranking list 2:
fiile2.java
file4.java
file1.java
I need to see how much are these two ranking lists are alike, get a
correlation between them. I dont even know where to
2005 Jun 05
2
Problem in the path for executables...
Hi,
I have a windows executable which I am trying to run in Linux using wine.
When I execute the command :
wine {ABSOLUTE_PATH}/file1.exe,
file1.exe runs many other executables internally, like file2.exe, file3.exe
and file4.exe.
Now when file1.exe is trying to run the other executables, it is not able to
get the path of the executables. I have the "PATH" enironment variable set
2004 Jul 08
4
read.frame
Hello group,
I am learning R and I am new to many concepts.I face
the following errors when I am trying to execute the
following. I have 4 text files with protein accession
numbers. I wanted to represent them in a venn diagram
and for that I using intersect and setdiff functions.
My data looks like this:
file1.txt (c):
NP_000005
NP_000020
NP_000030
NP_000053
file2.txt(e):
NP_000005
NP_000020