similar to: Selecting variables from a list of data.frames

Displaying 20 results from an estimated 20000 matches similar to: "Selecting variables from a list of data.frames"

2009 Oct 13
4
Creating a list of empty lists
Well here is one more brain-teaser related to assigning stuff into a list of list. What if I need to create a new list of empty lists? I have actually got a solution to this problem: l = list(list()) for ( i in sequence(length-1) ) { l = list(unlist(l,recursive=FALSE), list()) } But it is not very neat to do this in a loop. Are there any cuter ways to do this?
2009 Dec 18
1
The RSQLite version of dbGetQuery drops colums
Hi all, I just noticed (the hard way of course) that when a query returns 0 rows, the columns in the resulting data.frame get dropped as well. See the following example code (where conn is an active connection to an SQLite db): > dbGetQuery(conn, "select 1 as hey, 2 as ho where 1") hey ho 1 1 2 > dbGetQuery(conn, "select 1 as hey, 2 as ho where 0") data frame
2009 Aug 19
4
Basic question: Reading in multiple choice question responses to a single column in data frame
I'm using read.delim to successfully read in tab delimited data, but some columns' values are comma seperated, reflecting the fact that user chose a few answers on a multi-select question. I understand that each answer is its own category and so could be represented as a seperate column in the data set, but I'd like the option of reading in the data column, and converting it to a
2017 Jun 06
2
Subject: glm and stepAIC selects too many effects
If AIC is giving you a model that is too large, then use BIC (log(n) as the penalty for adding a term in the model). This will yield a more parsimonious model. Now, if you ask me which is the better option, I have to refer you to the huge literature on model selection. Best, Ravi [[alternative HTML version deleted]]
2002 Aug 28
4
Huge data frames?
A friend of mine recently mentioned that he had painlessly imported a data file with 8 columns and 500,000 rows into matlab. When I tried the same thing in R (both Unix and Windows variants) I had little success. The Windows version hung for a very long time, until I eventually more or less ran out of virtual memory; I tried to set the proper memory allocations for the Unix version, but it never
2012 Jul 24
1
Linear mixed-effect models and model selection
Hi, I am looking at the effect of allelochemicals produced by two freshwater macrophyte species on two different algal species at different days. I am comparing the effect of each macrophyte on each algae at each day. I received help from someone doing the LMEM (Linear mixed-effect models) and he told me to do ANOVA to analyse the LMEM. However, I received these feedback from my examinor; 1. An
2008 Aug 05
2
Selecting Variables
Hi All, i have a dataset that i want to dynamically inspect for the number of variables that start with "Exposure_" and then for these count the entries across each case i.e ID Exposure_1 Exposure_2 Exposure_3 1 y y y 2 y y - 3 y - - So the corresponding new variables
2017 Jun 06
0
Subject: glm and stepAIC selects too many effects
More principled would be to use a lasso-type approach, which combines selection and estimation in one fell swoop! Ravi ________________________________ From: Ravi Varadhan Sent: Tuesday, June 6, 2017 10:16 AM To: r-help at r-project.org Subject: Subject: [R] glm and stepAIC selects too many effects If AIC is giving you a model that is too large, then use BIC (log(n) as the penalty for adding
2001 Jul 07
2
Perl wrapper for libvorbisfile or stuff
Hey guys, I wrote to this list previously, saying I needed a perl module to do Ogg Vorbis tag reading / writing. People pretty much pointed me to the Ogg::Vorbis module that wrapped around libvorbisfile and I should extend that to writing streams, not only reading them. Well, awright, I thought, let's do it. Problem is, though: The download links on freshmeat are all broken and I don't
2001 Jul 07
2
Perl wrapper for libvorbisfile or stuff
Hey guys, I wrote to this list previously, saying I needed a perl module to do Ogg Vorbis tag reading / writing. People pretty much pointed me to the Ogg::Vorbis module that wrapped around libvorbisfile and I should extend that to writing streams, not only reading them. Well, awright, I thought, let's do it. Problem is, though: The download links on freshmeat are all broken and I don't
2009 Aug 12
1
In odbcDriverConnect ODBC connection failed
R-sig-Debian help, I have installed an ODBC Driver for Linux. I want to connect to our database through R via: >library(RODBC) >con <- odbcDriverConnect("SERVER=IP_address:PORT;DRIVER=ORACLE;DATABASE=MAGNUS") Warning message: In odbcDriverConnect("SERVER=IP_address:PORT;DRIVER=ORACLE;DATABASE=MAGNUS") : ODBC connection failed I don't really know whether this
2007 Jun 26
2
Aggregation of data frame with calculations of proportions
Dear all, I have been stuck on this problem, am rather struggling and would appreciate some advice if anyone can help. I apologise if this is a bit long-winded, but I've tried to limit it to the bare essentials, but don't know how to make it more generic! I have some slightly odd real world data that I'm looking at representing number of positive diagnoses for different diseases,
2020 May 04
2
default backend = rid not showing full group information for users
m?ndag 4 maj 2020 kl. 22:22:04 CEST skrev Rowland penny via samba: > On 04/05/2020 21:06, Magnus Holmgren via samba wrote: > > m?ndag 4 maj 2020 kl. 20:45:37 CEST skrev Rowland penny via samba: > >> On 04/05/2020 19:24, Magnus Holmgren via samba wrote: > >>> The systemd NSS module handles dynamically allocated users and groups > >>> when >
2020 May 04
2
default backend = rid not showing full group information for users
m?ndag 4 maj 2020 kl. 20:45:37 CEST skrev Rowland penny via samba: > On 04/05/2020 19:24, Magnus Holmgren via samba wrote: > > Sunday 3 maj 2020 kl. 13:14:24 CEST, Rowland penny via samba wrote: > >> As for 'systemd', not sure what this actually does, but when I am forced > >> to use systemd (e.g. on my rpi), everything works even though I remove > >>
2001 Sep 20
2
Problems with German umlauts and vorbiscomment
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, as I said before on this list I use the vorbiscomment utility in my music file management perl script and I've just noticed that it has huge problems with German umlauts. "ö", for example, becomes "ö", which is QUITE annoying. In xmms, the tags are displayed correctly, though. I'm using the newest libraries and
2010 Jan 24
2
ReceiveFAX and SendFAX questions
Morning, Have some questions regarding receiving and sending faxes... 1:st example: exten => 101,1,Answer() exten => 101,2,Wait(3) exten => 101,3,ReceiveFAX(/var/spool/asterisk/tmp/fax.tiff) exten => 101,4,System(tiff2pdf -p A4 /var/spool/asterisk/tmp/fax.tiff > /var/spool/asterisk/tmp/fax.pdf) exten => 101,5,System(mutt -s 'New FAX for you sir' -a
2008 Jul 19
2
Resolved: Apache + CGI/FastCGI + mod_rewrite
This is the last time I try to fix something in the middle of the night! Feel free to call me a Stupid Snake, ''cause this has been messy. Anyway, I think I''ve finally solved this. Here it is: http://pastie.org/237138 :-) -- Magnus Holm
2012 Apr 23
3
Selecting columns whose names contain "mutated" except when they also contain "non" or "un"
Hello All, Started out awhile ago trying to select columns in a dataframe whose names contain some variation of the word "mutant" using code like: names(KRASyn)[grep("muta", names(KRASyn))] The idea then would be to add together the various columns using code like: KRASyn$Mutant_comb <- rowSums(KRASyn[grep("muta", names(KRASyn))]) What I discovered though, is
2009 Dec 12
3
DEVICE_STATE
Hi all! I am trying to figure out how DEVICE_STATE is working, no luck so far. sip.conf [0317998975] type=friend regexten=0317998975 secret=???? username=0317998975 callerid="Magnus Benngard" mailbox=0317998975 at inputinterior.se host=dynamic canreinvite=yes dtmfmode=rfc2833 nat=yes disallow=all allow=alaw extensions.conf exten => 0317998975,hint,SIP/0317998975 exten =>
2007 Mar 08
6
Transfer-encoding: gzip
Hello! What is the simplest way to make merb respond to the client sending Accept-Encoding: gzip? Just checking if it exists, otherwise I''ll implement it myself. Regards, Magnus