similar to: Forcing integers to be nominal

Displaying 20 results from an estimated 3000 matches similar to: "Forcing integers to be nominal"

2002 Jul 03
2
operating on a subset of a dataframe
Hi everyone, I've got a dataframe with columns of different types. A certain number of columns in the dataframe hold the results of a series of Likert-type items. I've got a function that will print a simple table of frequencies and I want to apply that function to those columns of the dataframe only. What's the best approach? -Tim -- Tim Wilson | Visit Sibley online: |
2002 Aug 20
2
weighting means
Hi everyone, I've got a dataframe called 'faculty'. I want to do a weighted mean on the column called 'Q8' weighted by the contents of column 'CETP'. In addition, I need to operate on the result of splitting 'faculty' according to the contents of a column 'FACULTY'. For example > lapply(split(faculty$Q8, faculty$FACULTY), mean) $"1" [1]
2002 Jul 26
3
Fisher r-to-z transformation
Hi everyone, I want to use the Fisher r-to-z transformation as part of a hypothesis test of r. I can't find an R function that can do that. Am I missing it? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.com W. St. Paul, MN | | http://slashdot.org wilson at visi.com | <dtml-var
2002 Aug 22
1
combining output from several operations
Hi everyone, I wonder if there's a patient soul out there who has a minute to look at the following. I've got a set of summary statistics I need to perform many times. Naturally, I've looked at writing a function to automate the process as much as possible. (These are the data I mentioned recently in my question about weighted means.) I'm having trouble figuring out the proper
2002 Jun 28
4
R for simple stats
Hi everyone, I'm taking a course in statistics as part of my doctoral program in education at the U. of Minnesota, USA. I found R via Rpy, a python module that makes it possible to use R from python scripts. The instructor refers to SPSS a lot and that seems to be the standard stats tool around here. But being more of a Unix guy and not intimidated by programming, I'd like to see if I
2002 Jul 12
1
lmtest build fails, readline problem
Hi everyone, I've downloaded the lmtest package, but I'm having trouble building it. Here's the output: copland:/home/wilson/tmp# R CMD INSTALL -l /usr/lib/R/library lmtest_0.9-0.tar.gz * Installing *source* package 'lmtest' ... ** libs g77 -fPIC -g -O2 -c pan.f -o pan.o gcc -shared -o lmtest.so pan.o -L/usr/lib/gcc-lib/i386-linux/2.95.4 -lreadline -ldl -lncurses
2002 Aug 15
2
complex splits
Hi everyone, I'm having trouble figuring out how to split a dataframe more than once. Let's say I have a dataframe d with a certain column called splitcol composed of four possible ordinal values. The same dataframe has two other columns, col1 and col2, that have one of two possible values each. I'd like to split d$splitcol based on col1 and col2 so I can report frequencies of the
2002 Aug 03
2
smcc/ make failure/ R CMD INSTALL package
Software information: R Version 1.5.1 (2002-06-17) ESS 5.1.20 Emacs 21.1.1 Mozilla 1.0 Linux Mandrake 8.2 Colleagues I am having a little trouble installing packages. Having downloaded the gzipped tarball of a package, put it in a /tmp directory, and using this command: [root at localhost /]# R CMD INSTALL -l 'usr/lib/R/library/' '/home/smc/tmp/sgeostat_1.0-18.tar.gz' I
2002 Jul 06
1
R: one-sample binomial test
try ?power.prop.test > -----Messaggio originale----- > Da: Tim Wilson [mailto:wilson at visi.com] > Inviato: sabato 6 luglio 2002 6.05 > A: R-help > Oggetto: [R] one-sample binomial test > > > Hi everyone, > > Here's how I solved a problem for my stats class. I'm pretty sure I > understand what's going on, but I wonder if there's a more >
2002 Aug 02
4
extracting data from a dataframe
Hi everyone, Here's a question about extracting data from a dataframe: Let's say I've got a dataframe with two vectors, TEST and GENDER. GENDER contains a 1 for males and 2 for females. I want to separate the results of TEST by GENDER so I can compare their means. What's the most efficient way to do this with R? -Tim -- Tim Wilson | Visit Sibley online: | Check out:
2002 Aug 20
2
help page for a function
Dear R People I have a function that I wrote. It's not part of a library, it's just a nice function. However, I would like to have a "Help" page for it. How do I go about doing that please? Thanks so much in advance! R version 1.5.1 for Windows. Sincerely, Erin -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read
2002 Jun 30
4
modifying a vector
Hello everyone, Thanks to all who offered suggestions after my initial query to the list. I've been busy trying to absorb the docs as fast as possible, but this little thing has me stumped for the moment. I'm creating a random sample of 100 item and saving it to a vector named 'iq'. I'd like to create a second vector (iq_prime, say) by adding 20 to each element of the
2002 Jun 30
4
modifying a vector
Hello everyone, Thanks to all who offered suggestions after my initial query to the list. I've been busy trying to absorb the docs as fast as possible, but this little thing has me stumped for the moment. I'm creating a random sample of 100 item and saving it to a vector named 'iq'. I'd like to create a second vector (iq_prime, say) by adding 20 to each element of the
2002 Jul 06
3
one-sample binomial test
Hi everyone, Here's how I solved a problem for my stats class. I'm pretty sure I understand what's going on, but I wonder if there's a more direct way to solve it. Problem summary: A recent poll indicated that Candidate A is leading B with 55% of the vote. How many voters need to be surveyed to ensure a margin of error of +/- 2.5% with 99% confidence. Here's what I did:
2009 May 23
2
counting occurrence of text in a dataframe
Hello list. I am hoping for some help with a relatively simple problem. I have a data frame arranged as below. I want to be able to count the occurrence of each gene (eg let-7e) by Experiment. In other words how many times does a given gene crop up in the dataframe. I tried table but couldn't work out how to get the output I want. I have also considered rearranging this data into a list (by
2009 Sep 29
4
How can I avoid a for-loop through sapply or lapply ?
Through converting a miRNAs file from FASTA to character format I get a vector which looks like the following: > nml [1] "hsa-let-7a MIMAT0000062 Homo sapiens let-7a" [2] "hsa-let-7b MIMAT0000063 Homo sapiens let-7b" [3] "hsa-let-7c MIMAT0000064 Homo sapiens let-7c" [4] "hsa-let-7d MIMAT0000065 Homo sapiens
2008 Nov 06
1
replacing values in a vector
Hello list. I have a vector of values: eg > head(diff_mirs_list) [1] "hsa-miR-26b" "hsa-miR-26b" "hsa-miR-23a" "hsa-miR-27b" "hsa-miR-29a" [6] "hsa-miR-29b" and I would like to conditionally replace each value in this vector with a number defined in a dataframe: > fc ???????????? Probe ave.fc 1?????? hsa-let-7a?? 1.28 2?????
2011 Sep 30
1
Hi
Hi, There is a question that I am confused. I have a set of data like this: hsa-miR-205--GATA3 0.797882767 1.08E-13 hsa-miR-205--ITGB4 0.750217593 1.85E-11 hsa-miR-187--PGF 0.797604155 3.24E-11 hsa-miR-205--SERPINB5 0.744124886 3.28E-11 hsa-miR-205--PBX1 0.734487224 7.89E-11 hsa-miR-205--MCC 0.72499934 1.80E-10 hsa-miR-205--WNT5B 0.717705259 3.33E-10 hsa-miR-200c--PKN2 0.721746815
2007 Sep 21
2
duplicated names and values
Dear list, I am sorry about this simple question, but somehow I can not figure out how to solve my problem, may be you could help? I have a vector mir3: > length(mir3) [1] 220671 >head(mir3) rno-miR-30c rno-miR-30c rno-miR-30d rno-miR-30e "ENSRNOT00000049288" "ENSRNOT00000049288" "ENSRNOT00000049288"
2005 Mar 01
2
part of name to Date
hi everybody, i try to extract a part of name to a date : like : "VGT1_VGT2_CONTR_B020030401.H0V0.MIR" to "20030401" but the beginning of the files changes i have a list of files: [,1] [1,] "VGT1_CONTR_B020020301.H0V0.MIR" [2,] "VGT1_VGT2_CONTR_B020020611.H0V0.MIR" [3,]