Re: [R] Extracting unique entries by a column

2015-04-14 Thread Vikram Chhatre
uot; by Kernighan and Plauger: > > 10.0 times 0.1 is hardly ever 1.0. > > > - > David L Carlson > Department of Anthropology > Texas A&M University > College Station, TX 77840-4352 > > > -Original Message- > From: R-

[R] Extracting unique entries by a column

2015-04-14 Thread Vikram Chhatre
I have a data frame of dim 3x600. There are pairs of rows which have the exact same value in column 3. head(df) POP1 POP2 ABSDIFF L0005.01 0.98484848 0.688118812 0.2967297 L0005.03 0.01515152 0.311881188 0.2967297 L0008.02 0.97727273 0.004424779 0.9728479 L0008.04 0.0227

Re: [R] changing column labels for data frames inside a list

2015-03-30 Thread Vikram Chhatre
e last evaluated expression is returned. > > > > > > mylist <- list( > > + data.frame(a = runif(10), b = runif(10)), > > + data.frame(c = runif(10), d = runif(10)), > > + data.frame(e = runif(10), f = runif(10))) > > > mylist2 <- lapply(mylist,

[R] changing column labels for data frames inside a list

2015-03-30 Thread Vikram Chhatre
> summary(mygenfreqt) Length Class Mode dat1.str 59220 -none- numeric dat2.str 59220 -none- numeric dat3.str 59220 -none- numeric > head(mylist[[1]]) 1 2 3 4 5 6 7 8 91011 12 L0001.1 0.60 0.500 0.325 0.675 0.600 0.500 0.500

Re: [R] changing font to italic for one entry in legend()

2012-06-07 Thread Vikram Chhatre
Thanks Paul. That worked beautifully. V On Thu, Jun 7, 2012 at 7:46 PM, Paul Murrell wrote: > Hi > > > On 8/06/2012 12:27 p.m., Vikram Chhatre wrote: >> >> Hello, >> >> I need to change the font for one of the items (C. elegans) in my >> leg

[R] changing font to italic for one entry in legend()

2012-06-07 Thread Vikram Chhatre
Hello, I need to change the font for one of the items (C. elegans) in my legend to italic. Can someone suggest how to accomplish this? legend('bottomright', bty='n', c('C. elegans range', 'Study area'), cex=0.8, fill=c('light gray', 'white'), border=c('black','black')) I tried using lab.font=c(

[R] Resampling question

2012-05-10 Thread Vikram Chhatre
Hello - I have a population of 100 individuals that I would like to bootstrap 10 times, every time removing 5 *different* individuals. So far, I have done the following: pop <- read.table('mypop.txt', header=FALSE) replicate(10, sample(pop, 95, replace=FALSE)) I have not actually gone through

Re: [R] axis labels not showing

2012-04-08 Thread Vikram Chhatre
AM, Vikram Chhatre > wrote: >> Hello - >> >> I want to generate stacked plots with par(mfrow)) function.  However, >> my axis labels aren't showing. >> > > Your mar (2) are too narrow. You could increase back to the default or > use the lines opt

[R] axis labels not showing

2012-04-08 Thread Vikram Chhatre
Hello - I want to generate stacked plots with par(mfrow)) function. However, my axis labels aren't showing. My script is here: http://pastebin.com/yXXeMQgb The plot is here: http://www.crypticlineage.net/rdisc/strplot.pdf Thank you for your time. Vikram __

[R] choosing selective data with permutations

2011-08-10 Thread Vikram Chhatre
Hello, I am a R beginner and hoping to obtain some hints or suggestions about using permutations to sort a data set I have. Here is an example dataset: Ind1 11 00 12 15 28 Ind2 21 33 22 67 52 Ind3 22 45 21 22 56 Ind4 11 25 74 77 42 Ind5 41 32 67 45 22 This will