Displaying 20 results from an estimated 800 matches similar to: "Testing Environment for Plugints"
2017 Aug 28
2
help with read.csv() for files with different number of columns
Hi, Jim,
Thank you very much for pointing out the format issue. Here is the original text:
===I have a text file (test.txt) with different number of columns:
0610007P14Rik%%% Tcf19 Gtf2i 0610010O12Rik%%% Ivns1abp Etv6 1100001G20Rik%%% Nmi 1500015O10Rik%%% Foxi1 Ascl3 Sirt3 1700003E16Rik%%% Ascl2 Ifnar2 1700028J19Rik%%% Musk Nfe2l3 1810011O10Rik%%% Ppp1r13b Bpnt1 Cdkn2c Foxc1 Sox10 Smarca2
2017 Aug 28
0
help with read.csv() for files with different number of columns
Hi Ace,
With tabs as separators:
testdf<-read.table("test.txt",header=FALSE,fill=TRUE,sep="\t",
col.names=paste("V",1:19,sep=""),stringsAsFactors=FALSE)
Also note that I got the number of columns wrong the first time.
Jim
On Mon, Aug 28, 2017 at 12:56 PM, Fix Ace <acefix at rocketmail.com> wrote:
> Hi, Jim,
>
> Thank you very much for
2017 Aug 29
2
help with read.csv() for files with different number of columns
Thank you very much! Looks like I have to know the length of each record ahead of time.
Ace
On Monday, August 28, 2017 12:56 AM, Jim Lemon <drjimlemon at gmail.com> wrote:
Hi Ace,
With tabs as separators:
testdf<-read.table("test.txt",header=FALSE,fill=TRUE,sep="\t",
col.names=paste("V",1:19,sep=""),stringsAsFactors=FALSE)
Also note
2017 Aug 27
1
help with read.csv() for files with different number of columns
Dear R community,
I have a text file (test.txt) with different number of columns:
0610007P14Rik%%% Tcf19 Gtf2i 0610010O12Rik%%% Ivns1abp Etv6 1100001G20Rik%%% Nmi 1500015O10Rik%%% Foxi1 Ascl3 Sirt3 1700003E16Rik%%% Ascl2 Ifnar2 1700028J19Rik%%% Musk Nfe2l3 1810011O10Rik%%% Ppp1r13b Bpnt1 Cdkn2c Foxc1 Sox10 Smarca2 1810019D21Rik%%% Asb8 1810037I17Rik%%% Zfp612 1810055G02Rik%%% Nkx2-3 Maged1 Runx1
2017 Aug 29
0
help with read.csv() for files with different number of columns
Hi Ace,
You can just read the file first to find out:
max_fields<-function(file,sep=" ") {
rlines<-readLines(file)
return(max(unlist(lapply(sapply(rlines,strsplit,sep),length))))
}
nmax<-max_fields(test.txt,"\t")
Jim
On Wed, Aug 30, 2017 at 2:22 AM, Fix Ace <acefix at rocketmail.com> wrote:
> Thank you very much! Looks like I have to know the length of
2017 Aug 27
0
help with read.csv() for files with different number of columns
Hi Ace,
As your example seems to have spaces as separators,
testdf<-read.table("test.txt",header=FALSE,fill=TRUE,
col.names=paste("V",1:14,sep=""),stringsAsFactors=FALSE)
By specifying the number of columns with "col.names" and using
"fill=TRUE" you can get a data frame with zero length strings where
values are missing in the input file.
Jim
2018 Mar 16
3
R project global options file
Hello R-help,
I currently have R-project 3.4.2 and R-studio 1.1.383 installed on some of our universities computer labs. Since the installation of Visual studio the default version of R installed has changed to the version installed by VS. Users can change the default R version: found in R studio global options but users need to do this every session. Is there a file or
2018 Mar 17
0
R project global options file
> On Mar 15, 2018, at 10:24 PM, Adrian Friskin <adrian.friskin at qut.edu.au> wrote:
>
> Hello R-help,
> I currently have R-project 3.4.2 and R-studio 1.1.383 installed on some of our universities computer labs. Since the installation of Visual studio the default version of R installed has changed to the version installed by VS. Users can change the
2007 Nov 01
8
Specifying mixins
Hi folks,
Can anyone share some accumulated wisdom about the best way to spec
mixins in general, and (Jamis Buck-style) ActiveRecord "concerns" in
particular?
The standard situation here is that there''s a bunch of functionality,
related by concept if not by implementation, that one wants to inherit
in many different classes (e.g. ActiveRecord models) without having to
2006 Jan 23
3
prototype.js: enumerable mixin for hash broken
Hello everyone.
I am not sure if this is the right place to post, please redirect me
if there is a mailinglist more specifically dealing with prototype.js.
After playing around with the very inspiring prototype library I have
found a rather annoying thing, that makes the usefulness of the
Enumerable mixin for Hashes
questionable, if I am not totally wrong (again :-).
Here an example:
2017 May 23
3
prcomp: Error in La.svd(x, nu, nv): error code 1 from Lapack routine "dgesdd"
Dear R community,
I have a data matrix (531X314), and would like to apply the prcomp. However, I got this error Lapack message. I am using R3.2.2.
I googled a bit and found that it might be related to converge issue. ?Just wonder if there is a way to get around it?
Thank you very much!
Ace
On Thursday, December 29, 2016 11:44 AM, Ista Zahn <istazahn at gmail.com> wrote:
Use
2006 Sep 12
1
acts_as_taggable -- which one?
There appear to be three acts_as_taggable implementations and I''m looking for
a recommendation on which to use.
- Gem
- DHH plugin
- Dema mixin
The Gem implementation appears to be obsolescent, from what I can read on
the lists and Google search.
I like that the DHH plugin uses polymorphic associations because there will
be lots of different taggable items in my application; however,
2006 May 10
1
model mixin module madness
If I have several models which exhibit the same functionality, it seems
makes sense to create a mixin, ''include'' it in each model and save
myself some work and repeated code.
Where can I define a module which will be available to all models? I
can''t seem to find a documented place for them.
Alternatively, is there a Rails-standard way of achieving the effect?
Ben
2006 Nov 14
3
[UHH] any blogs sprung from camping?
Hello,
I just joined the camping list. I was trolling the archives when I saw this:
--
The biggest problem in Camping is authentication. This is a problem I
propose to solve by providing an extension. That little bit of code
uses the path to allow/disallow urls. That way it is unobstrusive. In
the future I would also like to make an OpenID client and server for
Camping.
--
I was wondering if
2009 Feb 02
2
ActiveRecord::AssociationTypeMismatch (User(#54754560) expected, got User(#54510280))
i keep getting this AssociationTypeMismatch error. i think this could
be a bug related to ruby/rails when using mixins. heres a short
version of my code:
# user.rb
require ''friend_invitation''
require ''friendship''
class User < ActiveRecord::Base
include FriendInvitationUser, FriendshipUser
...
end
# friendship.rb
...
module FriendshipUser
def
2006 Jan 15
6
PROPOSAL: Validations as Mixin
It seems to me that Validations are quite useful for many objects, even
ones having nothing to do with ActiveRecord.
Common examples are Contact Us forms, multi-step forms, web service
paramater validations, etc.
I took a look at the source for Validations, and it seems that it is
very independent from ActiveRecord. I caught only three depenedencies:
1. validates_numericy --> depends on
2005 Aug 02
1
Putting all elementes of the list in an enviorment of a function
Hello!
I have two functions.
The first one prepares the arguments for the second one. What is the best
way to put all resoults of the first one into the second one? I tried
attach, however the object in the "main" enviorment have a priority over the
ones in list. An example is at the end.
Thanks in advance for any suggestions!
Ales Ziberna
For example - I would like to use just
2011 Sep 23
3
ldap ENC extension to use environment parent node
Hi,
We currently use ldap ENC to set server role variables and extlookup
to set domain or environment variables.
I have a suggestion regarding ldap use as an ENC - if a node within
ldap has the environment attribute set then it should inherit/mixin
(if available) from a node named after it''s environment.
It could be populated with only puppetVar type attributes so that any
environment
2008 Oct 27
2
Wine post graduation thesis
Hello,
Im writing my post graduation thesis in
SYSTEMS INTEROPERABILITY
and im talking about M$ wine and crossover. Can anyone pointout some good literature to begin my work.
I want to talk about what needs to be done in M$ programing enviorment so that everything will run smothly in wine.
thanks
2006 Jun 29
2
Possibly same issue as ''duplicate search results'' topic?
Unfortunately I''m a newbie to ruby, rails, and acts_as_ferret. Also,
I''m working in code I mostly didn''t write, so I''m kind of unsure of
things. So this may be a dumb question. It also may be the same issue
as the topic ''Duplicate search results'', but I''m not sure.
When I update column values with