similar to: generate list of variable names

Displaying 20 results from an estimated 200 matches similar to: "generate list of variable names"

2010 Feb 18
1
variable substitution
Hi I would like to write a script that reads a list of variable names. These variable names are some of the column headers in a data.frame. Then I want do a for-loop to execute various operations on the specified variables in the data.frame, but can't figure out how to do the necessary variable substitution. In bash (or C) I would use "$var", but there seems to be no equivalent in
2010 Feb 25
3
variable substitution in for loops
Friends I can't quite find a direct answer to this question from the lists, so here goes: I have several dataframes, 200+ columns 2000+ rows. I wish to script some operations to perform on some of the variables (columns) in the data frames not knowing what the column number is, hence have to refer by name. I have variable names in a text file "varlist". So, something like this:
2008 Jan 22
1
row-wise conditional update in dataframe
Hi! I need to conditionally update a dataframe field based on values in other fields and can't find even how to search for this right. Sorry if this has been asked before. But, specifically, I have a 490 X 221 dataframe and need to count, by row, how many fields in Dataframe$field_a...Dataframe$field_zz are non-null and enter this value in Dataset$ABCtaskNum. I have field name
2010 Dec 09
4
lapply getting names of the list
Hello All, I have a toy dataframe like this. It has 8 columns separated by tab. Name SampleID Al1 Al2 X Y R Th rs191191 A1 A B 0.999 0.09 0.78 0.090 abc928291 A1 B J 0.3838 0.3839 0.028 0.888 abcnab A1 H K 0.3939 0.939 0.3939 0.77 rx82922 B1 J K 0.3838 0.393
2005 Apr 26
0
Construction of a "mean" contengency table
Hi List, Say I have a data.frame "DF" with 6 columns, 3 factors and 3 variables, with different number of repetitions for each combination of factors. I would like to build, for two given factors, a matrix per variable, containing in each cell the mean or sd for a given couple of factors. I have managed to get to the result I wanted step by step, but I would like to have it in a
2009 Mar 06
1
array subsetting of S4 object that inherits from "array"
Hi, I have an S4 class that inherits from "array" but does not add generic implementations of the "[" method. A simplified example is: setClass("fooarray", contains="array") If I create a "fooarray" object and subset it with a one-dimensional index vector, the return value is of class "fooarray". Other variants (see below), however,
2010 Dec 09
1
set dataframe field value from lookup table
Hi This is (hopefully) a bit more cogent phrasing of a previous post. I'm trying to compute a z-score to rows in a large dataframe based on values in another dataframe. Here's the script (that does not work). 2 questons, 1) Anyone know of a more elegant way to calculate the "rounded" age value than the nested ifelse's I've used? 2) how to reference the lookup table
2002 Jul 18
4
rsync anti-FUD
I'm working on a commercial project that would benefit immensely from the use of rsync. However, I cannot convince management that rsync is a worthy tool due to the rote "it's shareware, it's not supported" FUD. Are there any documented, corportate users of rsync? Testimonials? In short, how do I drag this risk-averse group out of the FTP age into the rsync present? /p
2017 Feb 05
2
Chrony vd NTP
On 05/02/17 16:15, Richard wrote: > >> Date: Sunday, February 05, 2017 10:26:05 -0500 >> From: Robert Moskowitz <rgm at htt-consult.com> >> >> I have read: >> http://thegeekdiary.com/centos-rhel-7-chrony-vs-ntp-differences-bet >> ween-ntpd-and-chronyd/ >> >> My server is up all the time and will serve time to internal >> systems (via
2010 Sep 30
2
Sweave and LaTeX beamer class
I am failing to uncover Sweave chunks step by step using the LaTeX beamer class. The following minimal example: \documentclass{beamer} \usepackage{Sweave} \begin{document} \begin{frame}[fragile] In the year \uncover<2->{25}\uncover<3->{\Sexpr{5*5}} \uncover<4->{ <<echo=TRUE, print=TRUE>>= 5*5*101 @ } \end{frame} \end{document} leads to an error message when
2017 Feb 05
1
Chrony vd NTP
> Date: Sunday, February 05, 2017 10:26:05 -0500 > From: Robert Moskowitz <rgm at htt-consult.com> > > I have read: > http://thegeekdiary.com/centos-rhel-7-chrony-vs-ntp-differences-bet > ween-ntpd-and-chronyd/ > > My server is up all the time and will serve time to internal > systems (via DHCP options). > > Caveat is that my server is an armv7
2004 May 14
2
Help needed with bri-stuff.0.02. slw91 k2.6.5
Running slackware 9.1 with compiled kernel from source 2.6.5 running ok. I have 2 HFC-S chipbased Billion Bipac PCI ISDN BRI cards installed in PC. Would like to use one card as in TE and one in NT mode. System works fine running pbx4linux.But want to use SIP functionality, so I would like to try out the Asterisk. Trying to install the bri-stuff.0.0.2.tar.gz (May 10 2004)package, getting the
2017 Feb 05
2
Chrony vd NTP
I have read: http://thegeekdiary.com/centos-rhel-7-chrony-vs-ntp-differences-between-ntpd-and-chronyd/ My server is up all the time and will serve time to internal systems (via DHCP options). Caveat is that my server is an armv7 (Cubieboard2) which does not have an RTC (no battery). So whenever the system boots, the time is ZERO (Dec 31, 1969 or some such). Chrony fixes this really fast;
2010 Jul 29
2
Using '[' as a function
I am learning R, and instead of learning by rote, I am trying to better understand the language in order to improve my programming. So any "meta-information" on why the following code works would be greatly appreciated... I obtained this code to extract the first record from each of a series of vectors in a list: >example<- list(c(1,2),c(3,4),c(4,5)) [[1]] [1] 1 2 [[2]] [1] 3 4
2006 Oct 28
1
(kein Betreff)
Frank Harrell rote in a message dating from Oct 8th: > n.group is an argument to latex.default in the Hmisc package I must admit that I can't find it in the function head, which reads on my installation: function (object, title = first.word(deparse(substitute(object))), file = paste(title, ".tex", sep = ""), append = FALSE, label = title, rowlabel = title,
2010 Jan 20
7
Data Manipulation
Dear All, I would like to to group the Ticker by Industry and create file names from the Industry Factor and export to a txt file. I have tried the folowing ind=finvizAllexETF$Industry ind is then "Aluminum" "Business Services" "Regional Airlines" ind2=gsub(" " ,"",ind) ind3 [1] "Aluminum"
2014 Dec 17
5
[LLVMdev] How to figure out what #includes are needed?
This is partly an llvm question, and maybe partly C++. I am trying to make calls on code in the llvm infrastructure.(3.4.2) I appear to be missing some include files, but don't know how to track them down. I get compile errors on existing llvm header files, like the following two examples: -------------------------------------------------------------------------------- In file included
2007 Jul 18
10
Rails - Mock going out of scope?
Hello list, I think I have a rails related RSpec problem with a mock going out of scope on a recursive call to a model. The code is at: http://pastie.textmate.org/79821 if you want to see it highlighted. I have pasted it below as well. Basically, I have an acts_as_nested_set model called "Node", which works fine. I have a function which finds the language name of the node instance.
2005 Dec 13
3
Features for next webgen release
| Ross Bamford wrote: | | On Tue, 13 Dec 2005 12:50:08 -0000, Thomas Leitner <thomas_leitner at | gmx.at> wrote [in comp.lang.ruby]: | | > I''m currently gathering ideas for new features for the next big | > webgen release (0.4.0). Some of the planned features are: | > | > * RSS feed generation (proposed by Friz Heinrichmeyer) | | That would be very nice -
2001 May 09
12
Microsoft "Windows for Linux"
-cross posted to comp.emulators.ms-windows.wine- Microsoft should consider producing "Windows for Linux". It could be their own version of Wine, but it would be nearly 100% compatible with the latest version of Windows. Microsoft could require that users have a retail copy of Windows to make this work. It's a win-win situation. Linux users could run nearly all of the available