Displaying 20 results from an estimated 5000 matches similar to: "mode of frequency distribution table"
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
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 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,
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
>
>
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 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)
--
-------------
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 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 Sep 16
1
download files using ftp: avoid error
I am planning to download a large number of files from some website. I am
using the following script.
files2down = c('aaa', 'bbb', ................)
for (i in 1: len)
{
print(paste('downloading file', i, ' of total ', len));
url = paste(urlPrefix, files2down[i], sep='')
destfile = paste (dest, 'inDir', files2down[i], sep='/' )
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
2012 Jan 16
1
ggplot- using geom_point and geom_line at the same time
Hi
I am plotting line chart using ggplot and want to use geom_line and
geom_point simultaneously.
I get the plot but now I have two legends. None of the legend is
representing the true values. I need the legend with shape and color both.
Thanks
> con = textConnection("inputs var1 var2 var3+ 100 10 5 2+ 1000 20 10 4+ 5000 30 15 8+ 10000 40 20 16+ 30000 50 25 32")> data =
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]
2006 Oct 31
1
Fw: domU network problem , 10/30 progress
Hao Yu
Commercial Scale Out
IBM T.J. Watson Research Center
1101 Kitchawan Rd/Route 134, Rm 36-019
Yorktown Heights, NY 10598-0218
914-945-1854, Email: yuh@us.ibm.com
----- Forwarded by Hao Yu/Watson/IBM on 10/31/2006 09:52 AM -----
Jimi
2006 Oct 31
1
Fw: domU network problem , 10/30 progress
Hao Yu
Commercial Scale Out
IBM T.J. Watson Research Center
1101 Kitchawan Rd/Route 134, Rm 36-019
Yorktown Heights, NY 10598-0218
914-945-1854, Email: yuh@us.ibm.com
----- Forwarded by Hao Yu/Watson/IBM on 10/31/2006 09:52 AM -----
Jimi
2013 Apr 18
2
How can I ask R to skip the title when reading the data?
I have many xls grade report sheets with the same format
XXX High School Grade Report
Confidential Yes
Math English Science
John 90 85 90
Mary 75 88 93
……
Since the reports are prepared on a regular basis, I have many reports with
identical format. Without the title “XXX High School Grade Report
Confidential Yes”, I can just change the xls to csv and read them via
read.csv. How
2006 Oct 16
2
PR#9295
I asked a question that might help me track down what changed between
2.3.1 that did build and the 2.4.0 version that will not build. Some of
the undefined names the linker was complaining about looked like #define
symbols that were not picked up by configure. The first thing I was
hoping for was to find out if this problem looked familiar? Whether or
not, I'm willing to try to work on
2008 Nov 08
2
Data Manipulation, add frequency index
Hi, there,
I have a simple data manipulation question for you. Thank you for your help!
Suppose that I have this data about people appearing in a class
Mary
Mary
Mary
Sam
Sam
John
John
John
John
Then I want to find out what exact time(s) the student appears at the
moment such as
Mary 1
Mary 2
Mary 3
Sam 1
Sam 2
John 1
John 2
John 3
John 4
the fifth row shows tha Sam show the second times