import a dataset from url link

my code is only importing the firts 18th line of the data set, i need a help to import correctly.

sethttps://rachidmuleia.com/project/2023-03-14-programacao-estatistica/Employee_Payroll_Tab.txt

I get 23 rows of data, which seems to be the full data set, with this code.

DF <- read.csv("https://rachidmuleia.com/project/2023-03-14-programacao-estatistica/Employee_Payroll_Tab.txt", sep = "\t")

I think that code is missing a closing ).

1 Like

I am trying to use the same code for this another link but i canthttps://rachidmuleia.com/project/2023-03-14-programacao-estatistica/Employee_Payroll_Pipe.txt

The problem is that the field seperator is a "|" and you need to specify that.

I think this should work:

dat1  <- read.csv("https://rachidmuleia.com/project/2023-03-14-programacao-estatistica/Employee_Payroll_Pipe.txt", sep = "|")

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.