similar to: Reading .csv file under linux

Displaying 20 results from an estimated 10000 matches similar to: "Reading .csv file under linux"

2007 Jun 11
1
Recoding
I want to do some recoding of variables: code Age into groups and recode a factor into a smaller number of levels. There are a couple of options for recode functions, in the car package and in memisc, and I think in gmisc. Does anyone have any opinions on the the easiest, most reliable approach for these problems? David Scott _________________________________________________________________
2008 Jan 27
2
[OT] Open source archive program on windows
I am looking for a recommendation for an open source competitor to Winzip. I seem to recall Brian Ripley mentioning one in the last year or so, but couldn't find it in the mail archives. (Searching on Ripley there is somehow not terribly useful.) Suggestions? David Scott _________________________________________________________________ David Scott Department of Statistics, Tamaki Campus
2008 Mar 20
2
Cygwin and Rtools
I have just got a new machine and had a basic cygwin installed before it was given to me. It didn't include make. Previously I have installed Rtools to build packages and now I have got myself a bit confused as to whether to just install make from the cygwin packages or to install rtools. I would welcome any advice. I had a look at the rtools section in the Administration Manual and the
2008 Sep 18
1
Plotting curves in lattice panels
I have a data set concerning ferritin levels in blood. There are three relevant columns for this question, ferritin (continuous), score (ordered, from 0 to 8) and gender. There is a good linear relationship between log(ferritin) and score for each gender. I can create a lattice plot on the log scale showing the data and the fitted line: xyplot(log(ferritin) ~ total|gender, data = blood,
2007 May 28
2
RODBC and Date/Time variables
This is really a query about MySQL which I am trying to use to set up a database which I will then access with RODBC. I have my data in a .csv file, and some of the fields are date/time fields. I tried to create a table using mysql with the definition of the date/time field given by CallDate DATETIME, but I got an error saying that the first row has 28/07/2006 0:00 in that field. What I
2004 May 06
3
strptime
Delving into the murky world of dates and times I found this: dates <- c("02/27/92", "02/27/92", "01/14/92", "02/28/92", "02/01/92") > times <- c("23:03:20", "22:29:56", "01:03:30", "18:21:03", "16:56:26") > x <- paste(dates, times) > z <- strptime(x, "%m/%d/%y
2008 Feb 11
4
R programming style
I am aware of one (unofficial) guide to style for R programming: http://www1.maths.lth.se/help/R/RCC/ from Henrik Bengtsson. Can anyone provide further pointers to good style? Views on Bengtsson's ideas would interest me as well. David Scott _________________________________________________________________ David Scott Department of Statistics, Tamaki Campus The University of Auckland,
2003 Jan 10
1
Creating packages
I am trying to create a package. I have succeeded in running R CMD check and R CMD build on an Intel box running Redhat. I would now like to build it on Windows as well. There is no compiled code in the package at all. I have downloaded the tools from Brian Ripley's Building R for Windows page, and installed Active Perl 5.8.0. I have set paths, and Rcmd and the tools are being found ok. I am
2005 Oct 31
2
Help with try or tryCatch
I am having trouble with try and tryCatch. I have read the documentation but I just don't get it. Here is what I am trying to do. I am testing a function which has a number of parameters. I want to test it for different values of the parameters and I have some loops, in the middle of which is a test of the function. Sometimes the routine fails and so I have put the bit that might fail
2004 Aug 26
1
Plotting groupedData objects
I am trying to create a plot similar to Figure 3.2 in Bates and Pinheiro. I have repeated measurements on about 80 subjects from 2 treatment groups. I would like to have the panels for the two treatment groups in separate groups and within those groups have the panels ordered on maximum value (as is the default). I am ok with getting plots similar to Figs 3.1 and 3.2, but can't see how to
2004 Sep 30
1
nlme: cannot allocate vector of size 126064 Kb
I have around 4000 observations of a time series. I am trying to fit a regression with ARMA error structure using gls from the package nlme. I have encountered the error: cannot allocate vector of size 126064 Kb I know this has come up many times before and I will check out the suggestions in the mail archive. I was wondering though if there is an alternative package that will fit such a
2006 Feb 11
1
Errors using update.packages()
When trying to update packages after the sysadmin updated R on my unix box I got errors on some packages. For example for chron: * DONE (chron) mkdir: cannot create directory `/usr/lib/R/library/00LOCK': Permission denied ERROR: failed to lock directory '/usr/lib/R/library' for modifying I got similar messages for spatial and cluster and warnings for other packages. Finally I got:
2004 Aug 09
1
Time zones
I am analysing some data collected over a number of months from Allentown, PA, which is just north of Philadelphia. I am using as.POSIXct for dates and times, and I need to get the timezone specification correct. Going on the documentation for DateTimeClasses, I believe one way to specify the correct time zone is tz="EST5EDT" I would be grateful for any advice on this. I ask
2024 Mar 22
1
Problem with new version of R: Mutated vocals
Dear ladies and gentlemen, I have recently installed the latest version of R (4.3.3) for windows. Now I have the following problems with mutated vowels like ?, ?, etc. Here is an example: If I type the command: Dir <- "C/Users/macho/Documents/_LVn/Experimentelle ?bungen" in the R console there is no problem. However, if I put the same command into a source file (e.g. Test.r) and call
2005 May 31
2
POSIX problem
I am having trouble with creating a POSIXct object. If I create a variable of class Date first out of the date part of my data, I am ok, but if I just paste the date and time parts together and try and create the POSIXct object, I have problems. Here is a toy example created from the actual data which caused the problem. I am using R 2.0.1 on Windows XP. > # Data frame with dates and
2003 May 02
3
letters to numbers conversion
Hello List How do I turn R> simple.example.alphabetic [,1] [,2] [,3] [1,] "a" "b" "c" [2,] "d" "e" "f" [3,] "g" "h" "i" into R> simple.example.numeric [,1] [,2] [,3] [1,] 1 2 3 [2,] 4 5 6 [3,] 7 8 9 [ie "a" becomes 1, ..., "z"
2003 May 29
2
R CMD BATCH --vanilla --slave produces unwanted lines
Hello list (thanks for all the help on my data.frame() question, especially to Professor R for a working script...I was pleased to see the solution wasn't obvious!) Anyway, now I'm trying to run R in batch mode, but I'm getting extra output, which I don't want (RedHat 8.3, R-1.7.0): r:~% cat test.R options(echo=FALSE) write(rnorm(4),"") r:~% R CMD BATCH --vanilla
1999 May 12
0
Problem with stripplot
I have had a problem with stripplot. Documentation does say that method ="stack" is only appropriate for granular data, but I don't think that means it should fall over. > difference [1] 2.0 1.3 2.8 -2.6 -0.4 -0.4 -1.2 -1.4 -1.0 1.2 -2.6 -1.9 > stripplot(difference) > stripplot(difference,method="jitter") > stripplot(difference,method="stack")
2003 Jun 25
0
frequency table
Robin, the initial output from apply() is always in the form you have below, but if it can be 'simplified' into a structure like the matrix, it does so. The same thing happens with sapply(). If you want to produce a nice matrix as the out put you have to ensure that the simplification is possible. Here is one way. > apply(x2, 2, function(x, v) table(factor(x, levels=v)),
2003 Jun 23
3
right assignment ("->") and functions
Hi everyone check this out [R-1.7.0]: R> f1 <- function(x){x^2} R> f1 -> f2 R> f2(4) [1] 16 R> R> function(x){x^2} -> f3 function(x){x^2} -> f3 R> f3(4) Error: couldn't find function "f3" Why does right assignment "->" work in the first but not the second case? Can anyone else reproduce this? -- Robin Hankin, Lecturer, School of