search for: mycolumn

Displaying 8 results from an estimated 8 matches for "mycolumn".

2009 Aug 19
4
Basic question: Reading in multiple choice question responses to a single column in data frame
...column, and converting it to a vector that has all row values (comma seperated or not) each have their own vector entry, so that the "table(columnData)" function does counts correctly. So some code: myData = read.delim(myDataFile, row.names=1,header=TRUE,skip=10); #works fine myColumn = myData[[question]]; #works fine, selects correct question column data myColumn data is now e.g.: 1 0 2 0,2 0 3 2 2,1 with the comma seperated values looking like atomic string values I guess. But I would like: 1 0 2 0 2 0 3 2...
2008 Nov 25
2
basic information defining functions
Hi all, i am looking from some insights to define own R functions. so far i found most basics in documentations that are around on the web. except for one thing: I?d like to define some function, say: #assume my data matrix contains vectors like data$myColumn1,data $myColumn2 etc. getMyColumn <- function (columnid){ x<-data$MyColumn?columnid?[data$indexone=1 & data$index2=5] return(x) } Do I need to use assign or eval first ? I tried to use paste to combine something like: paste("data$MyColumn",columnid,sep="") whic...
2011 Mar 24
1
Fwd: Asterisk 1.6.2.10 & CDR custom added field
...t;jonas.kellens at telenet.be> Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> 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 ?!...
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
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 ?!...
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
2008 May 23
3
Problem with .to_xml and Hash.form_xml ?
...i, 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> <my vlogiciels columns> ... </logiciel> </vlogiciels> ..... </video> </videos> Then i try to do : Video.new(Hash.form_xml(@xml)) an...
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,