similar to: import text file into R

Displaying 20 results from an estimated 20000 matches similar to: "import text file into R"

2010 Jun 08
1
how to read CSV file in R?
I tried to read a CSV file in R. The file has about 100,000 records and 75 columns. When used read.delim, I got this error. I am using R ver 10.1. > los<-read.delim("file.csv",header=T,sep=",") Warning message: In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : Reached total allocation of 1535Mb: see help(memory.size) Thanks -- View this message
2010 May 31
1
Building a what list for scan to use
Using read.table now on large files. Scan should be faster reading and parsing the files if a 'what' list is provided. How would I generate a what list that repeats the the last 4 elements n (n=14 or 10 or 8) times? whatlist=list(Tstamp="",Condition=0,A1=0,B1=0,C1=0,D1=0) All are numeric, either decimal or hexadecimal. Thanks in advance, Alex van der Spek
2009 Oct 02
4
Can't access http://localhost:3000
Hello, Pure newbie question. After installeing Ruby, Rail and al the gems I am following the tutorial here http://guides.rubyonrails.org/getting_started.html I start a server with Mongrel and it seems to be working, but when I try to acces http://localhost:3000 i get a firefox error: Firefox can''t establish a connection to the server at localhost:3000 I work under Vista with Ruby the
2012 Oct 18
2
How to import data from text file using scan() Function?
Hi.... I have one text file which containing 4 variables with 10 observations. I would like to import with scan() function. Please give some suggestion............ Thanks... Mydata set is. id name sex age 111 HELEN f 22 112 DONNA f 22 113 ERIC m 21 114 LINDA f 23 115 AXEL m 27 116 Madhuri f 32 117 Tarun m 39 118 Aashirya f 23 119 Nachik m 24 120 Leena f 32 -- View this message in context:
2010 Jun 17
3
RODBC in R
When I am connecting to the server via ODBC I got the following error. >library(RODBC) channel <- odbcConnect("my server", uid="***" , case="*****") Error in switch(case, toupper = case <- 1L, tolower = case <- 2L, postgresql = case <- 2L, : Invalid case parameter: nochange | toupper | tolower | common db names How to fix this error? Thanks --
2010 Jun 11
1
ff package when reading .csv files
Hi My aim is to read a large .csv file into R. I ran the following code and am using R version 10.1 on Windows. >library(ff) > read.csv.ffdf(x=NULL,"file.csv",fileEncoding="",nrows=-1,first.rows=NULL,next.rows=NULL,levels=NULL,appendLevels=TRUE,FUN="read.table",transFUN=NULL,asffdf_args=list(),BATCHBYTES=getOption("ffbatchbytes"),VERBOSE=FALSE)
2008 Nov 21
3
write every element of a variable into a separate text-file
Hello, what I want to do, is, to write every element of a variable into a separate text-file automatically: My Variable: > wull [1] "Hallo Leute, wie gehts denn euch seid ihr noch alle..." [2] "Is their anyone how can help me with..." [3] "mann, mann, mann... das nervt aber.." [4] "how are you littele strange tiger..."
2011 Mar 28
1
How to import variable length lists of lists into R from text file?
I will be collecting data where one of the fields may be of length zero to some variable number of elements, along with other items of fixed size. As an illustration if mydata.dat is: V1 V2 V3 V4 V5 1, 2.3, "Bob", {1.7,2.3,3.4}, 4.5 2, 3.4, "Carol", {}, 3.4 3, 2.2, "Ted", {1.0,2.5}, 3.5 ... ... I want to be able to do something like mydata
2012 Nov 25
2
How to import data from a text file in R
Hi, I'd like to import a 154x1 vector of a stock monthly returns from a text (or excel spreadsheet) into R. I need to work on this vector by calculating mean, variance and use it for more complex operations. What is the best function to do so? There are no headers, just 154 decimale numbers (so there also negative numbers). Thanks, Claudio -- View this message in context:
2010 Jul 18
2
Import of specific column of many space-delimited text files
Hi, I have about 300 space-delimited text files and from each file I want to import one specific column into R to create a data frame where all imported columns are included. Is there a smart way to do so? Thanks! -- View this message in context: http://r.789695.n4.nabble.com/Import-of-specific-column-of-many-space-delimited-text-files-tp2293273p2293273.html Sent from the R help mailing list
2007 Dec 31
2
How to import ENSEMBL text data using R
Dear all, I have a data which is in text file and i would like to import the data to R. From the manual, i?ve found the read.table command function is the most appropriate but when i wrote the command an error had occur. It say ?Error in read.table"C:/Users/user/Documents/cfa-1.txt", header = T, sep = "\t",skip=10) :more columns than column names?. Please help me with this as
2009 Feb 10
1
error using R Commander for text file import
I am getting the following error on iMac running Mac OS 10.5.6; this occurs whenever I try to import a text file into R Commander: Error in splitCmd(command) : unbalanced quotes Thus, I am unable to import data into R Commander. Any suggestions as to how I might fix this error? I have gotten it many times with more than one installation of R 2.8.1 on this computer. Dwight Krehbiel Bethel
2011 Jun 27
1
import text-records and set the fields in a table
hi! I apologize in advance if this is a newbie dumm question, but I really can't figure it ou. I have lists of sumeric and character data on some URLs, which look like this: <photo id="5876248819" owner="13716719 at N04" secret="faf9bb7f52" server="5264" farm="6" title="our rose garden" ispublic="1"
2010 May 31
2
Ignoring initial rows in a text file import
I am trying to import a series of text files generated by stimulus presentation software. The problem that I am having is that the number of rows I need to skip is not fixed (depending on subject's pretest behavior) nor is the first row of the data I want always the same (the stimuli were presented in random order). So I need to bring in the .txt file (using readLines?), look for the row
2013 Aug 21
3
data import: strange experience
Dear List: I had some strange experience in importing data. I wonder if anyone of you had the same problem before and would greatly appreciate your suggestion in advance. The original data set in excel format. Here is a brief summary of the procedure I did: 1. I saved the original excel data as csv and txt formats, separately. 2. I imported two data using the following codes. There were no
2012 Jul 10
3
HELP me please with import of csv to R
Hey, I am having problems with importing a csv file to R. I could read the file by typing: read.csv(file="/Users/kama/Desktop/skatter.csv", header=TRUE, sep=";") However, i can not analyze the "skatter" - for ex, when i type: skatter = read.csv("skatter.csv") i get this message: Error in file(file, "rt") : cannot open the connection
2011 Oct 03
2
Import in R with White Spaces
Hi, I have a simple question about importing data, I would be very grateful if you could help me out. I have used read.csv(file name, header=T, sep=",") to bring in a csv file I saved in MS Excel.The problem is I have white spaces in the middle of values (not in the column names), and this messes up the column entries. Since I have many many files that I am importing and I have spaces
2007 Jun 15
1
text display using expression or not
Hello, I imagine that I'm missing something straightforward, but a run thru the help files didn't turn up an answer. I noticed while formatting some figures for publication that text enclosed in expression() and used for a title displays differently than a string, regardless of the par options. On both postscript() and x11() devices, the regular text is heavier than the expression text.
2007 Mar 19
0
wine pagemaker cannot import text
. Now that I have Pagemaker working to some extent, I have found that I am unable to import text, either ascii text (.txt) or .rtf or any other format. Hope someone can offer a remedy to overcome this obstacle.
2008 Apr 08
1
distance matrix as text file - how to import?
Dear all, I have -hopefully- a tiny problem. I was sent a text file containing a distance matrix ? la: 1 2 3 4 5 6 Now I wanted to import these data into a dist object to, let's say, do 'plot(hclust(v))'. My first na?ve approach was to scan the text file in order to get a vector v. Then I did: class(v) <- "dist" attr(v, "Size") <- 4 But, of course,