If your zip file is called Sales.zip
and contains only a file called Sales.dat
, I think you can simply do the following (assuming the file is in your working directory):
data <- read.table(unz("Sales.zip", "Sales.dat"), nrows=10, header=T, quote="\"", sep=",")
More Related Contents:
- How to find common elements from multiple vectors?
- Remove ‘a’ from legend when using aesthetics and geom_text
- Replace NA with previous or next value, by group, using dplyr
- Global and local variables in R
- Assign multiple columns using := in data.table, by group
- Using the rJava package on Win7 64 bit with R
- Basic lag in R vector/dataframe
- R shiny passing reactive to selectInput choices
- Change bar plot colour in geom_bar with ggplot2 in r
- How to replace NaN value with zero in a huge data frame?
- define $ right parameter with a variable in R [duplicate]
- What are the R sorting rules of character vectors?
- Avoid ggplot sorting the x-axis while plotting geom_bar()
- Opening Shiny App directly in the default browser
- How to randomize (or permute) a dataframe rowwise and columnwise?
- Subsetting a data frame based on contents of another data frame
- Identify all objects of given class for further processing
- convert character to date *quickly* in R [duplicate]
- How can I prevent rbind() from geting really slow as dataframe grows larger?
- Any suggestions for how I can plot mixEM type data using ggplot2
- Emulate split() with dplyr group_by: return a list of data frames
- Subsetting data.table using variables with same name as column
- Extract elements common in all column groups
- Merge nearest date, and related variables from a another dataframe by group
- Most frequent value (mode) by group [duplicate]
- Converting factors to binary in R
- r igraph find all cycles
- How does one change the levels of a factor column in a data.table
- When should I use setDT() instead of data.table() to create a data.table?
- Return df with a columns values that occur more than once [duplicate]