Displaying 20 results from an estimated 40000 matches similar to: "set working directory in Windows XP"
2010 Sep 16
1
Help for an absolutely r-noob
Hello together,
I am an absolute noob in R and therefore I need help urgently. I have
received a script from my tutor with plot functions in it. However, I can'
manage to adapt these plots.
The hole script is as follows:
setwd("E:/")
##### (1) Read data ###
dat <- read.table("Komfort_Tatsaechliche_ID_Versuchsreihe_1.txt",
header=TRUE,
sep="\t",
2010 May 19
3
save in for loop
Dear users,
My problem concerns save() within a for loop.
Here is my code:
for (i in 1:4) {
temp <- data.frame(a=(i+1):(i+10), b=LETTERS[(i+1):(i+10)])
filename <- paste("file", i, sep="")
assign(filename, temp)
save(filename, file=paste(filename, ".rda", sep=""))
}
As you can see, save() doesn't work as I would like: (1) the object
2011 Apr 20
2
user input
Dear users,
I have looked on different sources and found different functions to
prompt the user to provide input. However, I couldn't find one that does
exactly what I'm looking for.
select.list() and menu() are nice because a graphic window appears to
prompt the user. However, the user can only choose from a predefined
list of choices. readline() and scan() are more free in the
2010 Sep 21
2
labels in (box)plot
Dear users,
I would like all the ticks on a boxplot (x and y) to be labeled
I have checked all the par() arguments but couldn't find what I'm
looking for
Here is an example to show it:
df <- structure(list(SPECSHOR = structure(c(1L, 1L, 1L, 3L, 3L, 3L, 3L,
3L, 4L, 4L), .Label = c("cotau", "dibic", "eqgre", "gicam"), class =
2011 May 04
1
Str info. Thanks for helping
It looks from str(SA) that Response IPS1 is a data.frame of class "anova", which probably cannot be coerced to vector.
Maybe you can use unlist() instead of as.vector()
Or something like
SA[["Response IPS1"]]["as.factor(WSD)",] ## to select the first row only, even maybe with unlist()
Without a better REPRODUCIBLE example, I cannot tell more (maybe some others
2010 May 20
1
use object within rda file in for loop
Dear users,
I would like to process all the lists from all *.rda files that I have
in one folder.
Up to now, I can load all the *.rda files without any problem.
The problem is when I want to access the list saved within each *.rda
file (only one list per rda file).
Here is my code:
fpath <- "D:/R"
listnames <- list.files(path=fpath, pattern=glob2rx("*.rda"),
2010 Mar 31
1
position of mismatches in all.equal()?
Dear R users,
I would like to compare two dataframes, actually their categorical
variables (as factors) only (there are 12, from column 1 to 12).
The reason I do that is that I got 2 datasets from two different methods
and I would like to be sure that each method used the same data (3D
images) to extract 2 different sets of 3D parameters. Is it clear so far?
So I thought about using
2011 Apr 26
2
what's wrong with plot(..., type="p")?
Dear users,
I'm trying to get a dot plot but always end up with a boxplot. Can
someone please tell me what I am doing wrong?
df <- structure(list(FACETTE = structure(c(1L, 1L, 1L, 1L, 2L, 2L,
+ 2L, 2L), .Label = c("base", "tip"), class = "factor"), Sq = c(274836,
+ 0.74182, 0.709205, 0.984552, 279869, 255712, 26566, 301464)), .Names =
c("FACETTE",
2017 Nov 17
3
Dataframe is character
Hi everybody,
Question: why are my dataframe and numeric variables a character?
I read an excel file via readxl but my dataframe is a character, and
numeric variables, eg "yi", are also a character.
My excelfile is in English numeric
Sometimes the dataframe was indeed a dataframe, but I do not know why it
did sometimes.
Thank you in advance, Roberto
PS I used "guess". The
2010 May 17
1
packages on R 2.11
Dear users,
I've noticed some time ago that some of the packages I use (especially
doBy) could not run (yet) on R 2.11. So I kept on using R 2.10.
But I think it should be fine by now.
So my question is how do I check whether a package is compatible with
the last version of R? How can I check whether it works perfectly or
whether there are still some bugs to be fixed?
I could ask the
2010 Mar 30
1
S3 vs S4
Dear R users,
I'm still a beginner and I'm wondering whether S3 or S4 methods really
differ for my use.
I understand more or less the distinction between the 2 classes from the
documentation I've read but the big question is: _*does it make a
difference in practice**?*_
Up to now, I've worked without noticing anything, but it might be
important to differentiate and to know
2010 Mar 01
3
why a text editor?
Dear users,
From the recent discussion, I've wondered whether a text editor would
be useful.
However, I couldn't find a good explanation of what it is used for.
For now, under Windows XP, I use the standard R Editor to write and run
scripts.
What can I do more with a text editor? It is worth using it?
Thanks in advance for your advice.
Regards,
Ivan
2011 Feb 25
1
speed up process
Dear users,
I have a double for loop that does exactly what I want, but is quite
slow. It is not so much with this simplified example, but IRL it is slow.
Can anyone help me improve it?
The data and code for foo_reg() are available at the end of the email; I
preferred going directly into the problematic part.
Here is the code (I tried to simplify it but I cannot do it too much or
else it
2010 Feb 24
1
problem with sqlSave()
Dear R users,
I've already asked this question yesterday, but, though I had answer for
the other ones (and they helped a lot, thanks), for some reason didn't
get an answer for this one (I would also appreciate to know why, so that
I can improve the quality and clarity of my future questions).
Here it is again:
I'm trying to use RODBC to export dataframes to xls files.
When I run
2011 Aug 30
1
R crash
Dear users,
By running the script below, R crashes systematically at the last
command, namely dev.off(), on Windows 7, but not on Windows XP.
I therefore don't provide a reproducible example and do not really
extract the relevant parts of the script because it has most likely
nothing to do with the script itself. I can do it though if you think it
might be relevant.
R crashes on Windows
2012 Jul 25
2
old weird error message
Dear users,
I have a weird questions. A friend of mine, some years ago, supposedly
trying to access help files without Internet connection, got something
like this error message:
"The Pythia is not available, please go to Delphi"
When I've heard about it, I found it very funny and I'd like to be able
to get it. Does anyone of you know how to get this error message again?
2010 Mar 11
3
Help function "?" in R 2.10.1
Hello everyone,
I have versions 2.7.2 and 2.10.1 installed on a machine that has no
access to internet.
In 2.7.2 I can use ? to get help on functions, which in 2.10.1 that
does not work, all I see is "starting httpd help server...done" and
then nothing.
Have I downloaded 2.10.1 incorrectly (=forgot to tick some box for
local help file repository) or is the internet help now the
2010 Nov 01
2
number of items to replace is not a multiple of replacement length
Hey all,
I am writing a function in which I will have a matrix of 4 columns and a
variable amount of rows.
The first to columns will always contain be of the Character type, the third
and fourth columns
can be a variation of data types, usually characters and integers, but
sometimes lists or matrices.
At one point the code makes, for each row, a copy of that row, then it makes
some adjustments
2010 Jan 18
2
column selection for aggregate()
Hi everybody!
I'm working on R today so I have a lot of questions (you may have
noticed that it's the 3rd email today). I'm new on R, so please excuse
the "spam"!
I have a dataset "ssfa" with many rows and the column names are:
> names(ssfa)
[1] "SPECSHOR" "BONE" "TO_POS" "MEASUREM" "FACETTE"
2010 May 18
3
"Re: Change class factor to numeric"
sorry I had a mistake sending my question without a subject. I do resend again. Please excuse me.
> Hello
> I have a data array with soil variables (caperf), in which the variable "clay" is factor (as I see entering str(caperf)) . I need to do a regression model, so I need to have arcilla (=clay) as a numeric variable. For that I have entered
>
>