Displaying 20 results from an estimated 20 matches for "andrewh".
Did you mean:
andrew
2011 Sep 08
6
Searching the console
Is there any way to search the console during an interactive session? I've
looked and looked, and can not find one. In some add-on package, maybe?
Sorry to be so basic, but help would be greatly appreciated.
andrewH
--
View this message in context: http://r.789695.n4.nabble.com/Searching-the-console-tp3797884p3797884.html
Sent from the R help mailing list archive at Nabble.com.
2012 Nov 03
8
Can you turn a string into a (working) symbol?
..."a", sep='')) <- 3
aa
typing aa should return 3.
Is there such a function? Can there be?
I thought as.symbol would do this, but it does not.
> as.symbol (xx[1])*as.symbol (xx[2])(r)
Error: attempt to apply non-function
Looking forward to hearing from y'all. --andrewH
--
View this message in context: http://r.789695.n4.nabble.com/Can-you-turn-a-string-into-a-working-symbol-tp4648343.html
Sent from the R help mailing list archive at Nabble.com.
2013 Jan 15
2
Sparse dataframes?
...wondering if there is an alternate file specification currently
available that still allows numeric, character and factor data to be stored.
Besides just using a database.
A pointer in the right direction (or a solid "no" if that is the truth)
would be greatly appreciated.
Sincerely, andrewH
--
View this message in context: http://r.789695.n4.nabble.com/Sparse-dataframes-tp4655614.html
Sent from the R help mailing list archive at Nabble.com.
2013 Dec 09
2
How can I find nonstandard or control characters in a large file?
...erent, it would be helpful
to eliminate this possibility. And this is also something I would routinely
run on files from external sources if I had it.
I am working in a windows XP environment, in case that makes a difference.
Any help anyone could offer would be greatly appreciated.
Sincerely, andrewH
--
View this message in context: http://r.789695.n4.nabble.com/How-can-I-find-nonstandard-or-control-characters-in-a-large-file-tp4681896.html
Sent from the R help mailing list archive at Nabble.com.
2011 Oct 05
6
reporting multiple objects out of a function
...invoked (the
?calling environment,? yes?).
I?m pretty sure there is a command to do this, but I?m not sure how to find
it. Any help would be greatly appreciated ? either on the necessary code, or
on how to search for it, or a reference to a good discussion of this family
of problems.
Sincerely, andrewH
--
View this message in context: http://r.789695.n4.nabble.com/reporting-multiple-objects-out-of-a-function-tp3873380p3873380.html
Sent from the R help mailing list archive at Nabble.com.
2012 Nov 13
5
Getting information encoded in a SAS, SPSS or Stata command file into R.
...of ram.
(I have seen some suggestions that data.table also provides a
memory-efficient way of providing database-like functions, but I am unsure
whether it would let me cope with an object of this size).
Any help or suggestions anyone could offer would be very much appreciated.
Warmest regards, andrewH
--
View this message in context: http://r.789695.n4.nabble.com/Getting-information-encoded-in-a-SAS-SPSS-or-Stata-command-file-into-R-tp4649353.html
Sent from the R help mailing list archive at Nabble.com.
2011 Aug 16
1
Can you send "side effect" text into a variable?
Dear folks --
There are a number of functions -- I am thinking of str() as an example --
that produce text as a side-effect, rather then returning it. Is there any
way to send the text produced by such functions into a character variable?
Any suggestions would be greatly appreciated.
andrewH
--
View this message in context: http://r.789695.n4.nabble.com/Can-you-send-side-effect-text-into-a-variable-tp3746025p3746025.html
Sent from the R help mailing list archive at Nabble.com.
2011 Sep 17
1
Name the dots! ("...")
...?
As an aside, I do not understand why the list command does not do this by
default, like the data.frame command does. In fact, you can use data.frame
instead of list to get a named argument list, but only if all your objects
are of the same length.
Thanks in advance for any help you can offer.
andrewH
--
View this message in context: http://r.789695.n4.nabble.com/Name-the-dots-tp3819947p3819947.html
Sent from the R help mailing list archive at Nabble.com.
2011 Sep 15
2
Returning the name of an object passed directly or from a list by lapply
...myname)
[[1]]
[1] "X[[1L]]"
[[2]]
[1] "X[[2L]]"
Is there any way to write myname() so that it returns the same objects name
regardless of whether it is handed the name directly or by lapply as an
element of a list?
Any help you can offer would be greatly appreciated.
Warmly, andrewH
--
View this message in context: http://r.789695.n4.nabble.com/Returning-the-name-of-an-object-passed-directly-or-from-a-list-by-lapply-tp3816798p3816798.html
Sent from the R help mailing list archive at Nabble.com.
2011 Sep 16
2
Referring to an object by a variable containing its name: 6 failures
...t am I doing wrong?
How do I use a variable containing an object's name to refer to the object
itself?
Although I'm hoping others will find the bald look caused by tearing my hair
out to be attractive, I would appreciate any assistance you can offer in
understanding this question.
Warmly, andrewH
testDFcols <- function(data.df, select=c(1:ncol(data.df)), bar=TRUE) { #
A useful summary function
if(bar) cat("##################################\n");
attach(data.df)
for (column in select) {
colName <-names(data.df)[column]
cat("Column Name(",...
2011 Oct 27
2
Consistant test for NAs in a factor when exclude = NULL?
...tly
identifies the NAs. In example number 3, which mixes NAs from assignment
with NAs from data, is.na does not even find the NAs created by assignment,
as it did in example 1.
I'm running R 2.13.2 on Windows XP with ServicePack 3
Any assistance would be greatly appreciated.
Appreciatively, andrewH
Example #1
> # Origin: is.na()<- Exclude: NULL
> KK <- factor(c("A","A","B","B","C","C"), exclude=NULL)
> KK[KK=="C"]
[1] C C
Levels: A B C
> is.na(KK[KK=="C"]) <- TRUE
> KK
[1] A A B...
2012 Oct 11
1
replacing ugly for loops
...unction (which is why I started with a split()), and the inner loop
(indexed with j) into some cute recursive function, but I was not able to do
so. If anyone could suggest some nicer (e.g. shorter, or faster, or just
more sophisticated) way to do this instead, I would be most grateful.
Sincerely, andrewH
--
View this message in context: http://r.789695.n4.nabble.com/replacing-ugly-for-loops-tp4645821.html
Sent from the R help mailing list archive at Nabble.com.
2013 Mar 04
4
Learning the R way – A Wish
...ortunately, I do not
have ready access to a major research library and I have way, way outspent
my book budget. Someday I?ll probably buy a copy, but for the time being, I
am stuck without it. So it would be great to have a piece of code that uses
them explained in detail.
Warmest regards to all, andrewH
--
View this message in context: http://r.789695.n4.nabble.com/Learning-the-R-way-A-Wish-tp4660287.html
Sent from the R help mailing list archive at Nabble.com.
2011 Sep 13
2
Reading R Code aloud
...ver
after, even when reading it silently.
So I was wondering if there are any significant example of people reading R
code out loud available on the web, on youtube or something? I did not find
any on ten minutes search, but perhaps I do not know how best to look. Does
anyone know of any?
Warmly, andrewH
--
View this message in context: http://r.789695.n4.nabble.com/Reading-R-Code-aloud-tp3811142p3811142.html
Sent from the R help mailing list archive at Nabble.com.
2012 Nov 27
1
Using factor variables with overlapping categories
...ount objects. Is there a ?standard? approach to is, or a set
of commonly used approaches, that anyone could suggest or point me to? I?d
be happy with either coding suggestions or pointers to the methodology
literature if there is one.
Any help or suggestions would be greatly appreciated. Thanks!
andrewH
--
View this message in context: http://r.789695.n4.nabble.com/Using-factor-variables-with-overlapping-categories-tp4651054.html
Sent from the R help mailing list archive at Nabble.com.
2011 Jul 09
3
Using str() in a function.
Using str() in a function.
I am in the early phase of learning R, and I find I spend a lot of time
trying to figure out what is actually in objects I have created or read in
from a file. I'm trying to make a simple little function to display a
couple of things about a object, let's say the summary() and the str(),
sequentially, preferably without a bunch of surplus lines between them. I
2011 Oct 07
1
Unexpected behavior of extract (`[`) or sapply functions
...ow the structure of the output shifts. I can
not understand what is happening. What I want it to do when given just
factor cols =c(1) is to give me back exactly what it gives me bact for
factor colum 1 in factor.cols = c(1,2).
Any help or suggestions would be greatly appreciated.
Sincerely,
andrewH
# Test Data
test.df <- data.frame(AA=rep(LETTERS[1:2], c(6,6)),BB=rep(LETTERS[3:5],
c(4,4,4)),
CC=rep(LETTERS[6:9],c(3,3,3,3)), DD=c(1:12))
# The function
getLevels <- function(data.df, factor.cols, data.col){
test.levels <- sapply(test.df[,factor.cols, dro...
2012 Nov 21
0
Making part of a data frame into a time series
...t allowed to define part of a data frame as a
time series, and that I will just have to give up on that idea. Is that
right?
And why is everything a one? Is ts using the default frequency instead of
the one I handed to it? And if so, why?
Offers of help or insight greatly appreciated.
Sincerely, andrewH
--
View this message in context: http://r.789695.n4.nabble.com/Making-part-of-a-data-frame-into-a-time-series-tp4650392.html
Sent from the R help mailing list archive at Nabble.com.
2011 Jul 26
1
Package or procedure recommendations for analysis of repeated cross-sections?
...once, but that was more than a decade ago, and I fear
that, like many with a superficial knowledge of econometrics, I tend to see
every research question in terms of OLS or GLM, even if that is not the
right model for the problem.
Any help or suggestions would be greatly appreciated.
Sincerely, andrewH
--
View this message in context: http://r.789695.n4.nabble.com/Package-or-procedure-recommendations-for-analysis-of-repeated-cross-sections-tp3694587p3694587.html
Sent from the R help mailing list archive at Nabble.com.
2011 Sep 08
0
Consistently printing the name of an object passed to a function; & a data-auditing question
...ght through the whole question of efficient data auditing. Is
there a suite of tools, or a standard set of recommendations, that you use
and like? I'd love to hear any useful advice about how to accelerate this
stage of a project, and get more quickly to its statistical heart.
Most sincerely, andrewH
--
View this message in context: http://r.789695.n4.nabble.com/Consistently-printing-the-name-of-an-object-passed-to-a-function-a-data-auditing-question-tp3798005p3798005.html
Sent from the R help mailing list archive at Nabble.com.