similar to: How to evaluate a Variable Name?

Displaying 16 results from an estimated 16 matches similar to: "How to evaluate a Variable Name?"

2006 Oct 23
3
Plotting Text on a graph
Hi, I plotted 12 graphs on a page and output to a png file. I wanted to have an overall title for all 12 graphs. What command can I use to do this? Below is the code that plotted the 12 graphs in one page. # FM10 by Month/ Export the plot to Wash2005FM10.png png(file="Wash2005FM10.png",bg="white") par(mfrow = c(3,4)) # Plot 12 Month of OFM10, FFM10 for(i in
2010 Jun 03
3
reformat time from hhmm
Hi, I'm newish to R, a recent convert from Matlab... So far I'm impressed, and determined to solve the following problem, which seems like it should be easy: I have a long (millions of points) data series recorded with a datalogger that produced a timestamp in 4 columns: Year, Day of Year, Time in (H)HMM and Seconds. I would like to have R interpret these columns as a time object and have
2011 Nov 17
1
how to read a free text file into individual variables
hi ,I am writing a soft package based on R. But when I try to read a configure file showed as below. How can I read the parameter in this text file. How can I read the parameter into each variable in this file ? configinfo<-scan(file(configfile),ok=TRUE,n=-1) scan seems need every line have same column ? configinfo <- readLines(configfile,ok=TRUE,n=-1) methodnum <-
2011 Nov 17
2
how to read a freetext line ?
hi everyone . Here I have a text where there are some integer and string variables.But I can not read them by readLines and scan the text is : weight ;30;130 food:2;1;12 color:white;black the first column is the names of the variables and others are the value of them. the column in different line are different. Can anyone help me ? -- TANG Jie Email: totangjie@gmail.com Tel: 0086-2154896104
2007 Aug 06
4
Function for trim blanks from a string(s)?
I feel like an idiot posting this because every language I've ever seen has a string function that trims blanks off strings (off the front or back or both). Ideally, it would process whole data frames/matrices etc but I don't even see one that processes a single string. But I've searched and I don't even see that. There's a strtrim function but it does something completely
2018 Apr 02
0
New Package fansi: ANSI Control Sequence Aware String Functions
fansi provides counterparts to the base string manipulation functions substr, strwrap, strtrim, strsplit, and n(z)char that account for ANSI CSI SGR control sequences.? ANSI CSI SGR control sequences [1] can be used to format text in terminals that support them. For example the control sequence "\033[31m" causes text that follows to render in red, and the control sequence
2018 Apr 02
0
New Package fansi: ANSI Control Sequence Aware String Functions
fansi provides counterparts to the base string manipulation functions substr, strwrap, strtrim, strsplit, and n(z)char that account for ANSI CSI SGR control sequences.? ANSI CSI SGR control sequences [1] can be used to format text in terminals that support them. For example the control sequence "\033[31m" causes text that follows to render in red, and the control sequence
2010 Apr 14
2
search and replace
I have a dataframe with almost a million rows which has one column with strings. That column has several entries with the words "South", "North", "East" and "West" which I would like to replace with S, N, E, and W, respectively. Obviously, I can use gsub multiple times df $col2 <- gsub("West", "W", df$col2) which will require
2009 Aug 20
0
Sweave truncation
Peter Thank you for the information. I accidentally deleted Ken's post without having read it. Ken' s thought is great but as you said awful to implement I thought that capture.output would come in handy some time when I first saw it on an unrelated reply. Just thought :- the latex listings package may have alternatives If I remember correctly it has wrapping and other goodies but I
2006 Sep 21
0
A Call for a Smaller R Core Package
(Below is my idea on an issue that has troubled me for a fairly long time. I hope it's not viewed as trouble making.) A Call for a Smaller R Core Package This document suggests downsizing the 'core' package of R by taking out some specialized functionalities to form their own packages. I'll use string related functions as examples, because I happened to be troubled by them today.
2006 Sep 20
1
problem coercing truncated character vector to levels
Dear R wizes, I have a data.frame of species abundances with column names consisting of 4 letter codes then an underscore and a number like this: abco_1, abco_2, abco_3, psm_1, psme_2, psme_3, etc. I would like to get an identifier for all the abco, and psme and other species etc. I used spec.fact<-substring(names(spec.count),1,4) To make a vector of the first 4 letters of
2007 Jan 31
5
Quick Question about R
Hello, Is there a way to convert a character to a number with out getting a warning? I have a vector that has both numbers and letters in it and I need to convert it to only numbers. At the moment I'm using as.numeric but it is generating a warning when it converts a letter. Is there another function out there that will do what I need or is there a way to turn off the warnings as I
2006 Oct 03
1
R-2.4.0 is released
I've rolled up R-2.4.0.tar.gz a short while ago. This version contains several changes and additions, mostly incremental, but some larger changes to S4 methods have been added, as well as namespace sealing. See the full list of changes below. You can get it (in a short while) from http://cran.r-project.org/src/base/R-2/R-2.4.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to
2006 Oct 03
1
R-2.4.0 is released
I've rolled up R-2.4.0.tar.gz a short while ago. This version contains several changes and additions, mostly incremental, but some larger changes to S4 methods have been added, as well as namespace sealing. See the full list of changes below. You can get it (in a short while) from http://cran.r-project.org/src/base/R-2/R-2.4.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to
2005 Apr 18
1
R-2.1.0 is released
I've rolled up R-2.1.0.tar.gz a short while ago. This version contains several substantial changes and additions, perhaps most notably the UTF8 and Internationalization changes. See the full list of changes below. You can get it from http://cran.r-project.org/src/base/R-2/R-2.1.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in
2005 Apr 18
1
R-2.1.0 is released
I've rolled up R-2.1.0.tar.gz a short while ago. This version contains several substantial changes and additions, perhaps most notably the UTF8 and Internationalization changes. See the full list of changes below. You can get it from http://cran.r-project.org/src/base/R-2/R-2.1.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in