similar to: basic information defining functions

Displaying 20 results from an estimated 400 matches similar to: "basic information defining functions"

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
2006 Mar 17
3
Updating Table without ID Column
Hey All, I''ve been having a slight problem updating attributes for a row that matches something other than it''s ID...For ex: My table that has 3 rows..ColumnID, ColumnTitle, and ColumnDescription. I want to update a row in that table WHERE CoumnTitle = @myvar....But whenever i run update_attrbutes[:mytable] it''s looking for an id for the record when i need to to
2012 Mar 29
1
Error: argument of length 0
Problem: I keep getting: "Error in (index - 9):index : argument of length 0" when I run this code in an automated loop, but when I step through it by hand, I have no problems. It keep crashing when i<-10. I cannot figure this out to save my life! Please help and THANK YOU in advance! variables: FM100 is a matrix of columns: year, day (all years set to 366 days), region 1, region
2011 Mar 24
1
Fwd: Asterisk 1.6.2.10 & CDR custom added field
Hello, is there anyone who can point me to correct information ? Following http://pbxinaflash.com/forum/showthread.php?t=9042 and http://www.voip-info.org/wiki/view/Asterisk+cdr+mysql > Extending CDR does not result in a working environment for me. Any feedback appreciated. Kind regards, Jonas. -------- Original Message -------- Subject: [asterisk-users] Asterisk 1.6.2.10 & CDR
2011 Mar 22
0
Asterisk 1.6.2.10 & CDR custom added field
Hello list, I have added an extra field "mycolumn" to the cdr table in my MySQL-DB. I simply try to add a value to this column by doing the following in the dialplan : exten => 600,n,Set(CDR(mycolumn)="myvalue") But this value is not written to the column 'mycolumn' together with the other CDR-data. Why is this ?! Do I need further configuration ? (Not
2005 Jun 28
2
How to sort a dataframe by one variable
Hi there, Could anybody help me on how to sort a dataframe by one variable in the dataframe? Thank you Lisa Wang Princess Margaret Hospital Toronto, Ca tel: 416 946 4501
2001 Aug 09
2
Pulling columns out of a data.frame
Hi there Probably a very simple solution to this problem. I have a character vector eg c("name1","name2","name3") and I want to pull out these columns from a data.frame, converting each of these columns into factors also. Many thanks Rachel -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read
2005 Jan 21
6
Avoiding a Loop?
Dear R-Helpers, I have a matrix where the first column is known. The second column is the result of multiplying this first column with a constant "const". The third column is the result of multiplying the second column with "const"..... So far, I did it like this (as a simplified example): nr.of.columns <- 4 myconstant <- 27.5 mymatrix <- matrix(numeric(0), nrow=5,
2008 May 23
3
Problem with .to_xml and Hash.form_xml ?
Hi, i m trying to do some kind of database dump using .to_xml and after i try to fill my database back (well an other) with the content of the xml. Right now i m doing that : @xml = Video.find(:all).to_xml(:include=>[:vlogiciels]) it does produce : <videos> <video> <mycolumns> ..... <vlogiciels> <logiciel>
2011 Apr 03
1
Help in splitting ists into sub-lists
Dear List, Let's say I have a list whose components are 2 matrices (as exemplified in the "mylist" object below). I'd like to create a list with components being 4 matrices based on an logical index vector. is there a way to simplify what I'm doing to obtain the results in "mylist2"? I'd like something that would work on an arbitrary number of elements in
2006 Nov 14
2
Problem with file size
Hi everyone, I have 2 environments (2 different R sessions) as described below: Session 1: Name of the environment: "CrlmmInfo" Objects in the environment: index1: logical index - length 238304 index2: logical index - length 238304 priors: list of 4 - (matrix 6x6, 2 vectors of length 6, vector of length 2) - all num params: list of 4: centers [238304 x 3 x
2006 Nov 14
2
Problem with file size
Hi everyone, I have 2 environments (2 different R sessions) as described below: Session 1: Name of the environment: "CrlmmInfo" Objects in the environment: index1: logical index - length 238304 index2: logical index - length 238304 priors: list of 4 - (matrix 6x6, 2 vectors of length 6, vector of length 2) - all num params: list of 4: centers [238304 x 3 x
2009 Jan 27
1
Problem with RMA using limma, oligo and pdInfoBuilder packages
Hi, I am a Ph.D. student from Québec, Canada. I’m a beginner with R and Bioconductor. Until now the only experience I have is in analyzing microarray data using affy and limma packages. Now I am trying to analyze Rat Gene 10 st arrays and I would like to run RMA analysis and Smyth moderated t test on those arrays. Since no cdf official package is available for those arrays, after reading many
2007 Jun 07
0
Unique :key not maintained after add_indexes?
Hi, When adding an index to another one using add_indexes I get duplicates even though I use the :key attribute. For example: def test_add_indexes_uniqueness index1 = Ferret::Index::Index.new(:key => :id) index2 = Ferret::Index::Index.new(:key => :id) # Add two items with same id index1 << {:id => 23, :data => "This is the data..."}
2010 May 05
3
concatenate values of two columns
Dear list, I'm trying to concatenate the values of two columns but im not able to do it: i have a dataframe with the following two columns: X VAR1 VAR2 1 2 2 1 3 2 4 3 5 4 6 4 what i would like to
2012 Jun 28
3
Storing results in a single file after looping over all files
Hi All, I have a whole lot of *.raw files in my working folder and I am doing the same analysis on each of those and want to save all the results in a single file. I am making some mistake here and can't figure out how to solve it. Say, the *.raw files are ABCD.raw, EFGH.raw, IJKL.raw ... The files are of this format ID PHI?? aa1? aa2? aa3 .... 1??? 1???? 1.3?? 2.0?? 1.0 2??? 0????
2020 Oct 14
0
which() vs. just logical selection in df
Inline. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Oct 14, 2020 at 3:23 PM 1/k^c <kchamberln at gmail.com> wrote: Is which() invoking c-level code by chance, making it slightly faster > on average? > You do not need
2010 Jan 27
2
Merge: sort=F not preserving order?
Hello, I have the following data1 (index are chars): ?? ?index 1 ?008823 2 ?012689 3 ?004503 4 ?002991 5 ?012689 6 ?002845 7 ?012689 8 ?012395 9 ?012689 10 009302 11 002845 12 006669 13 008823 14 009302 15 025340 16 012689 and data2 in this format (index2 are chars): ?? ? ? index2 ? ? ?tic 1 ? ? 001003 ? ? ANTQ 2 ? ? 001004 ? ? AIR 3 ? ? 001009 ? ? ABSI 4 ? ? 001011 ? ? ACSE etc I am
2016 Mar 16
2
match and unique
Is the phrase "index <- match(x, sort(unique(x)))" reliable, in the sense that it will never return NA? Context: Calculation of survival curves involves the concept of unique death times. I've had reported cases in the past where survfit failed, and it was due to the fact that two "differ by machine precision" values would sometimes match and sometimes not,
2005 May 15
5
AreskiCC
Hi, I have installed AreskiCC on Slackware 10.1 with Asterisk latest CVS and Postgres 7.4. First of all the instructions are very confusing and hard to follow if you are not an expert. But, I managed to install it and.obviously t doesn't work. The other instructions I found on wiki are a great effort but incomplete. Basically the first thing that happens is that when I load