Displaying 20 results from an estimated 1000 matches similar to: "download files using ftp: avoid error"
2011 Nov 08
2
download.file
I am downloading say 100 files from ucsc website and storing it into dest
folder.
download.file function create a file in destination folder even if the file
is not present which is something I dont want.
So I wrote if condition to remove the file if the download function has non
zero value.
Now it exits when there is an error or file not present. How can I use
"try" and "if"
2012 Jul 22
4
pvalue calculate
I have a value
a=300
observation (x) = sample(1:50)
How to find a p-value from this. I need to show that "a" is different fom
mean(x).
Thanks
--
-------------
Mary Kindall
Yorktown Heights, NY
USA
[[alternative HTML version deleted]]
2011 Jun 14
1
[Resolved] combine the data frames into comma separated list.
Hi
Thanks Gabor for your suggestion. I am posting the code that worked for me.
dataframe1 = data.frame(cbind(Src = c(1,1,1,2,3), Target1 =
c('aaa','bbb','ccc','aaa','ddd'))); #must be data frame
dataframe2 = data.frame(cbind(Src = c(2,3,4,4,4), Target2 =
c('aaaa','dddd','bbbb','eeee','ffff')));
dataframe3 =
2011 Jun 13
3
combine the data frames into comma separated list.
Hi R users,
I am new to R and am trying to merge data frames in the following way.
Suppose I have n data frames each with two fields. Field 1 is common among
data frames but may have different entries. Field 2 is different.
Data frame 1:
Src Target1
1 aaa
1 bbb
1 ccc
2 aaa
3 ddd
Data frame 2:
Src Target2
2 aaaa
3 dddd
4 bbbb
4
2011 Dec 21
1
aggregate function
Hi
I have a data frame with values in following format.
param case1
1 a
2 b
2 c
2 d
3 e
4 f
how to use aggregate so that it I only one row for each 'param' value.
the output for the above input should be
param case1
1 a
2 b,c,d
3 e
4 f
Thanks
M
--
-------------
Mary
2012 Jan 06
1
(Edited) cbind alternate for data frames
>
> I have two dataframes and want to perform cbind and then write into a
> file. The number of entries are more than a million in both frames. R is
> taking a lot of time performing this operation.
>
> Is there any alternate way to perform cbind?
>
> x = table1[1:1000000,1:4]
> y = table2[1:1000000,3:6]
>
> z = cbind(x,y) //hanging the machine
>
>
2012 Jan 08
1
mode of frequency distribution table
In a frequency distribution table (bell shaped), how can we find the most
frequent range?
for example:
x = c(1,2, 4,4,4,4, 5,5,5,6,6,5,5,5,5,5,6,6,6,13, 17,17,30,100,300)
barplot(table(x))
In the code above, which function do we use to find that the most
frequent value range from 4 to 6.
Thanks.
--
-------------
Mary Kindall
Yorktown Heights, NY
USA
[[alternative HTML version deleted]]
2011 Aug 19
3
installing packages systemwide
I installed some downloaded packages in R. I always do
$sudo R CMD INSTALL <anRpackage.tar.gz>
By default it is storing these packages into my directory
/home/mary/R/x86_64-pc-linux-gnu-library/2.13/.
However I want them to be systemwide into /usr/local/lib/R/site-library/
folder.
I tried
$sudo R
R> install.packages("anRpackage", dep=TRUE)
I did not succeed into getting
2011 Aug 19
3
installing packages systemwide
I installed some downloaded packages in R. I always do
$sudo R CMD INSTALL <anRpackage.tar.gz>
By default it is storing these packages into my directory
/home/mary/R/x86_64-pc-linux-gnu-library/2.13/.
However I want them to be systemwide into /usr/local/lib/R/site-library/
folder.
I tried
$sudo R
R> install.packages("anRpackage", dep=TRUE)
I did not succeed into getting
2011 Nov 16
1
read.table : fill missing entry with "unAvailable" [edit]
Hi R users,
I try to read a data file (tab delimited format) in which some of the
entries in a particular field are missing. Is it possible to fill the
unavailable data with 'UnAvailable' string while performing read.table()
Something like
df = read.table(DataFile, header=FALSE, fill_missing_entry = 'unAvailable')
1
thanks
--
-------------
Mary Kindall
Yorktown Heights,
2012 Jan 06
6
cbind alternate
I have two one dimensional list of elements and want to perform cbind and
then write into a file. The number of entries are more than a million in
both lists. R is taking a lot of time performing this operation.
Is there any alternate way to perform cbind?
x = table1[1:1000000,1]
y = table2[1:1000000,5]
z = cbind(x,y) //hanging the machine
write.table(z,'out.txt)
--
-------------
2016 Sep 21
2
-sanitizer-coverage-prune-blocks=true and LibFuzzer
> On Sep 21, 2016, at 9:36 AM, Kostya Serebryany via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Exciting!
>
> (btw, I'd prefer libfuzzer at googlegroups.com <mailto:libfuzzer at googlegroups.com> for such discussions, please start new topics there)
You mean a LLVM library has a separate mailing-list? Why?
—
Mehdi
>
> I can reproduce this too, but
2012 Jan 12
1
relative frequency plot using ggplot or other function
Hi
I have a data frame in the following form. There are two groups and for
each 'width' relative frequency for group1 and group2 is given. How to plot
this in R using ggplot or other package.
Width relativeFrequency1 relativeFrequency2
1 100 0.0006388783 0.02265428
2 200 0.0022677303 0.02948625
3 300 0.0061182673 0.01739936
4 400 0.0152237225 0.02569902
5 500
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
2016 Sep 21
2
-sanitizer-coverage-prune-blocks=true and LibFuzzer
> On Sep 21, 2016, at 12:56 PM, Kostya Serebryany <kcc at google.com> wrote:
>
>
>
> On Wed, Sep 21, 2016 at 12:32 PM, Mehdi Amini <mehdi.amini at apple.com <mailto:mehdi.amini at apple.com>> wrote:
>
>> On Sep 21, 2016, at 9:36 AM, Kostya Serebryany via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
2012 Jun 06
3
Sobel's test for mediation and lme4/nlme
Hello,
Any advice or pointers for implementing Sobel's test for mediation in
2-level model setting? For fitting the hierarchical models, I am using
"lme4" but could also revert to "nlme" since it is a relatively simple
varying intercept model and they yield identical estimates. I apologize for
this is an R question with an embedded statistical question.
I noticed that a
2013 Aug 28
1
Error when using buildVignettes()
Dear all,
When running function 'testQAReport()', which uses function
'buildVignettes()' to create a pdf-file I get the following error:
> source("testQAReport.R")
> testQAReport()
Error in .get_package_metadata(pkgdir) :
Files 'DESCRIPTION' and 'DESCRIPTION.in' are missing.
Since I did not get this error in earlier versions of R, could you
2010 Mar 31
2
Generative Topographic Map
I tried to use R version of package
I noticed the original MatLab Pckage is much better documented.
I had a look at the R demo code "gtm_demo" and found that variable Y is used in advanced of being created:
I wrote my own few lines as follows:
inDir <- "C:/Documents and Settings/Monville/Alanine Dipeptide/DBP1/DHA"
setwd(inDir)
T <-
2011 Nov 11
1
list.dir() function
Hi
I have an organism directory that contains two folders galGal3 and hg19 and
many other files.
orgDir = '/home/mary/org'
When I try to use list.dir() function, it gives me the same answer, no
matter what is the value of full.names argument.
> list.dirs(path = indexDir, full.names = FALSE)[1] "/home/mary/org"
[2] "/home/mary/org/galGal3"
[3]
2016 Sep 21
3
-sanitizer-coverage-prune-blocks=true and LibFuzzer
Hello,
Is this reproducible?
> Fuzzing is a probabilistic business and one or even two runs don't prove
> much.
>
I've reproduced the behavior on two different machines. Attached is a
script to do so. To use the script,
- create an empty folder and copy both prune-blocks.sh and
ff-http-parser.sh in there
- ensure clang and clang++ are in your $PATH
- cd /path/to/prune-blocks.sh