Displaying 20 results from an estimated 400 matches similar to: "transpose but different"
2009 May 20
1
Plot data from table with column and row names
Dear All
Sorry for what appears a trivial matter - I'm new to R and am stumbling
ahead.
I have a table of numerical data (36 rows by 12 columns) such as below:
GM1 GM2 GM3 GM4 GM5 ...etc GM12
Run1 1 2 1 2 3 ...
Run2 2 1 3 2 1 ...
...
Run36 2 1 1 1 1
I would like to plot simple line graphs of some of the runs or
2009 Mar 26
4
same value in column-->delete
Hi Readers,
I have a question.
I have a large dataset and want to throw away columns that have the same
value in the column itself and I want to know which column this was.
For example
> x<-data.frame(id=c(1,2,3), snp1=c("A","G",
"G"),snp2=c("G","G","G"),snp3=c("G","G","A"))
2009 Apr 09
5
data.fram zero's
Hi all,
A simple question which I don???t seem to be able to solve:
I want to make a data.frame of 360 rows and 94228 column with only zero???s
without having to type all these zero???s ;-)
What is the easiest method?
Thanks,
Naomi
Disclaimer: De informatie opgenomen in dit bericht (en bijlagen) kan
vertrouwelijk zijn en is uitsluitend bestemd voor
2009 Mar 20
1
reshape dataframe
Hi,
I have a large dataset on which I would like to do the following:
x<-data.frame(id=c(1,2,3), snp1=c("AA","GG",
"AG"),snp2=c("GG","AG","GG"),snp3=c("GG","AG","AA"))
> x
id snp1 snp2 snp3
1 1 AA GG GG
2 2 GG AG AG
3 3 AG GG AA
And then
2009 Jun 03
1
strsplit for multiple columns
Hi,
I am trying to split multiple columns. One column works just fine, but I
want to do it for multiple columns???
Example
> a
ID V2 V3 V4 V5 V6 V7 V8 V9 V10
1 PBBA0644 -- GG AA -- AA -- AA GG GG
2 PBBA1010 -- GG AA -- AA -- AA GG GG
3 0127ATPR -- GG AA -- AA -- AA GG GG
4 0128EHAB -- GG AA -- AG -- AA AG GG
5 PBBA0829 -- GG AA -- AA -- AA GG AG
2009 Nov 27
1
problem tick marker and text
Hi R-ers,
I am struggling with my x-axis in a association plot. What I would like is
to place the labels of the x-axis between the tick markers and normally the
labels are printed at the place where the tick marker is placed. I don???t
want to move the tick marker (it gives the switch between one chromosome and
the next) but I just want to put the chromosome number in between the
2009 Feb 13
2
select on letter
Hi,
I was wondering if anybody can help me. In the small data set below I would like to select the index which doesn't contain the letter 'N' in the variable 'letters'. How can I discard these rows when the letter has a different position everytime (but the same letter for the whole column)?
index<-c(1,2,3)
letters<-c("CCTTGGAA", "NNTTGGAAT",
2008 Jul 17
1
Can't test games on Game Maker?
Hi, ever since I sold my PC containing Windows, I decided to go with Ubuntu.
Anyway, I was devoted to making games on Game Maker, however, I can't test my game using WINE.
I can use the Game Maker program, but when I click the green or red arrow to test the game, all I get is a blank black screen.
I tried running it in a virtual desktop, but all I get is a screen that only shows me less
2003 May 26
3
chan_h323 and extensions.conf
Hi all,
I try to ask helps again about chan_h323 extensions.
I define this in h323.conf:
[general]
port = 1720
bindaddr = 0.0.0.0
allow=gsm
allow=ulaw
gatekeeper = DISABLE
context=default
[gm1]
type=friend
host=192.168.1.20
context=default
[gm2]
type=friend
host=192.168.1.25
context=default
and I have in extensions.conf :
[demo]
2012 Apr 04
2
Selecting obs within groups defined by 2 variables
Hello,
I am relatively new to R, and I am trying to select the last
observation within a group, where the group is defined by two
variables. One of the variables is a date.
In the below example, C3 varies within C2, which varies within C1. I
need to select the last observation in C3 for 4 groups (C1*C2): 1x,
1y, 2x, and 2y. In my real dataset, C2 is a date (mm/dd/yy)
C1 C2 C3
1 x 1
1
2012 Apr 02
1
gamm: tensor product and interaction
Hi list,
I'm working with gamm models of this sort, using Simon Wood's mgcv library:
gm<- gamm(Z~te(x,y),data=DATA,random=list(Group=~1))
gm1<-gamm(Z~te(x,y,by=Factor)+Factor,data=DATA,random=list(Group=~1))
with a dataset of about 70000 rows and 110 levels for Group
in order to test whether tensor product smooths vary across factor levels. I was wondering if comparing those two
2003 May 23
1
How to define an extension for chan_h323
Hello all,
Encouraged by the successful "demo", I'am getting on with Asterisk CVS.
I added 2 H.323 extensions in extensions.conf
[default]
include => demo
exten => 701,1,Dial(H323/gm2@192.168.1.20/s)
exten => 702,1,Dial(H323/gm2@192.168.1.25/s)
With:
- [demo] is defined by default in sample.extensions.conf
- Asterisk server is running on host 192.168.1.20, on the
2011 May 09
3
asterisk syntax highlighting for gedit
Hi,
Apologies if this is a duplicate - been having mail server issues and I don't think I managed to send it when I tried this morning.
It seems there is no .conf syntax highlighting script available for gedit. I'm thinking of putting one together myself, but don't want to reinvent the wheel.
So I'm just enquiring if anyone knows of one that already exists that i've missed.
2005 Oct 20
2
information about Loess
Hello,
I'm currently using a tool that provides a Loess fitting, but I obtained results that are slightly different from those provided by R implementation of the Loess. That's why I would like to know if you could give me a source (bibliography or web) that explains in a clear way each step of the algorithm, with the possible options to choose, etc.. in order for me to understand those
2006 Aug 09
1
Clarification on error_messages_for
Just learning Rails.. So this is probably a noob question. My apologies.
Could anyone please give me a quick summary/example on the usage of
error_messages_for?
I have two tables/models, Group and GroupMembers. Obviously, a Group
has_many GroupMembers. I have a customized view which shows a list of
GroupMembers followed by a field and a button which facilitates adding a
member to the group by
2012 Sep 18
1
Lowest AIC after stepAIC can be lowered by manual reduction of variables
Hello
I am not really a statistic person, so it's possible i did something completely wrong... if this is the case: sorry...
I try to get the best GLM model (with the lowest AIC) for my dataset.
Therefore I run a stepAIC (in the "MASS" package) for my GLM allowing only two-variable-interactions.
For the output (summary) I got a model with 7 (of 8) variabels and 5 interactions and
2006 Jun 08
3
has_many :through updates on delete.
I have a model that looks like this:
class Actor < ActiveRecord::Base
has_many :member_groups, :foreign_key => ''member_id'', :class_name =>
''GroupMember''
has_many :groups, :through => :member_groups, :source => :group
end
class Group < Actor
has_many :group_members, :foreign_key => ''group_id'',:dependent =>
2011 Mar 21
2
1.8 realtime - segfault
Hi,
I have installed Asterisk 1.8 and am using realtime dialplan contexts from a mysql table.
Asterisk keeps segfaulting. When I trace the thread ids associated with the segfaults in the full log, all they have in common is
netsock2.c: == Using SIP RTP CoS mark 5
which is probably a red herring since it appears so often in threads that do not segfault.
When compiling, I ticked all the
2013 Nov 07
2
Error running MuMIn dredge function using glmer models
Dear list,
I am trying to use MuMIn to compare all possible mixed models using the dredge function on binomial data but I am getting an error message that I cannot decode. This error only occurs when I use glmer. When I use an lmer analysis on a different response variable every works great.
Example using a simplified glmer model
global model:
mod<- glmer(cbind(st$X2.REP.LIVE,
2011 Jul 21
4
squared "pie chart" - is there such a thing?
Hello!
It's a shoot in the dark, but I'll try. If one has a total of 100
(e.g., %), and three components of the total, e.g.,
mytotal=data.frame(x=50,y=30,z=20), - one could build a pie chart with
3 sectors representing x, y, and z according to their proportions in
the total.
I am wondering if it's possible to build something very similar, but
not on a circle but in a square - such that